';
print '
';
print '
';
print '| ' . $from . ' - ' . $to . ' |
';
print '| ' . $langs->trans('UserGroupName') . ': ' . $helper->getUserGroupRefById($packageHistoryRecordObj->fk_groupuser_id) . ' |
| ' . $langs->trans('ToolGroupName') . ': ' . $helper->getGroupLabelById($packageHistoryRecordObj->fk_group_id) . ' |
| ' . $langs->trans('PackageName') . ': ' . $helper->getPackageLabelById($packageHistoryRecordObj->package_id) . ' |
';
#
# Jutalék Lezárt
#
$commissionClosed = $commmissionhandler->getTotalCommissionFromThisPeriod($user_id, $from, $to);
print '
| ' . $langs->trans('CommissionClosed') . ' | ';
if (count($commissionClosed) > 0) {
foreach ($commissionClosed as $commission) {
print '| ' . $commission['date_creation'] . ' | ' . $commission['label'] . ' | ' . $helper->correctNumber(intval($commission['amount'])) . ' HUF | ';
}
} else {
print '| ' . $langs->trans('NoCommission') . ' | ';
}
print '
|
';
#
# Jutalék (kalkulált)
#
$commission = $commmissionhandler->getTotalCommission($user_id, $from, $to);
print '
| ' . $langs->trans('ExpectedCommission') . ' |
| ' . $helper->correctNumber(intval($commission)) . ' HUF |
|
';
$withholdingTD = '' . $langs->trans('Withhold') . ' | ';
print '| ' . $langs->trans('DevicesList') . ' | ' . $withholdingTD . '
';
#
# Eszközök listája
#
$counter = 1;
//print_r($withholdingsArray); exit;
//print_r($withholdingsChkArray);
if ($BLock2ndData) {
foreach ($BLock2ndData as $device) {
$displayConfirmButton = 'display:inline-block';
$displayPrinterButton = 'display:none';
# checkboxes
$checkedDevice = $dailyClosing->getChecked($deviceArray, $device);
$deviceWHChk = $dailyClosing->getDeviceWHChk($deviceArray, $device);
$deviceAmount = $dailyClosing->getDeviceAmount($amountArray, $device);
//print_r($checkedDevice);
$checkedDailyIncomeHUF = $dailyClosing->getCheckedDailyIncomeHUF($deviceArray);
$dailyAmountHUFChk = $dailyClosing->getDailyAmountHUFChk($deviceArray);
$checkedDailyIncomeEUR = $dailyClosing->getCheckedDailyIncomeEUR($deviceArray);
$dailyAmountEURChk = $dailyClosing->getDailyAmountEURChk($deviceArray);
$witholdingIdentifier = 'd' . $device['device_id'] . '_amount';
$witholdingChkIdentifier = 'd' . $device['device_id'];
if (isset($withholdingsArray[$witholdingIdentifier]) && $withholdingsArray[$witholdingIdentifier] !== '') {
$deviceAmount = $withholdingsArray[$witholdingIdentifier];
}
if ($withholdingsChkArray[$witholdingChkIdentifier] == '1') {
$checkedDevice = 'checked';
$deviceWHChk = "display:none;";
}
//print_r($checkedDevice);
print '';
print '| ' . $device['ref'] . ' | ' . $device['title'] . ' | | HUF |
';
$counter++;
}
}
if (!empty($addititonalDevices)) {
foreach ($addititonalDevices as $key => $value) {
$device['device_id'] = $key;
$checkedAdditional = $dailyClosing->getChecked($deviceArray, $device);
$deviceWHChk = $dailyClosing->getDeviceWHChk($deviceArray, $device);
$deviceAmount = $dailyClosing->getDeviceAmount($amountArray, $device);
$witholdingIdentifier = 'd' . $key . '_amount';
$witholdingChkIdentifier = 'd' . $key;
if (isset($withholdingsArray[$witholdingIdentifier]) && $withholdingsArray[$witholdingIdentifier] !== '') {
$deviceAmount = $withholdingsArray[$witholdingIdentifier];
}
if ($withholdingsChkArray[$witholdingChkIdentifier] == '1') {
$checkedAdditional = 'checked';
$deviceWHChk = "display:none;";
}
print '';
print '| ' . $helper->getAdditionalTitle($key) . ' | ' . $value . ' | | HUF |
';
$counter++;
}
}
print '
';
#
# Napi bevétel KP
#
if (isset($withholdingsArray['_daily_HUFcash_amount']) && $withholdingsArray['_daily_HUFcash_amount'] !== '') {
$_daily_HUFcash_amount = $withholdingsArray['_daily_HUFcash_amount'];
}else{
$_daily_HUFcash_amount = $amountArray['_daily_HUFcash_amount'];
}
if($withholdingsChkArray['_daily_HUFcash'] == 1){
$checkedDailyIncomeHUF = 'checked';
$dailyAmountHUFChk = "display:none";
}
if (isset($withholdingsArray['_daily_EURcash_amount']) && $withholdingsArray['_daily_EURcash_amount'] !== '') {
$_daily_EURcash_amount = $withholdingsArray['_daily_EURcash_amount'];
}else{
$_daily_EURcash_amount = $amountArray['_daily_EURcash_amount'];
}
if($withholdingsChkArray['_daily_EURcash'] == 1){
$checkedDailyIncomeEUR = 'checked';
$dailyAmountEURChk = "display:none";
}
print '
';
#
# Napi bevétel kártya
#
print '
| ' . $langs->trans('DailyIncomeCard') . ' |
| HUF: | ' . $helper->correctNumber(intval($BLock3rdData['HUFcard'])) . ' HUF | | |
| EUR: | ' . $helper->correctNumber((intval($BLock3rdData['EURcard']))) . ' EUR | | |
';
#
# Teljes összeg KP + váltó
#
print '
| ' . $langs->trans('TotalAmountCash') . ' |
| | ' . $langs->trans('DailyIncomeCash') . ' | ' . $langs->trans('Change') . ' | ' . $langs->trans('TotalAmountCash') . ' |
| HUF: | ' . $helper->correctNumber($BLock3rdData['HUFcash']) . ' HUF | ' . $helper->correctNumber(intval($addititonalChangesDevices['change_huf'])) . ' HUF | ' . $helper->correctNumber(intval($BLock3rdData['HUFcash'] + intval($addititonalChangesDevices['change_huf']))) . ' HUF | |
| EUR: | ' . $helper->correctNumber($BLock3rdData['EURcash']) . ' EUR | ' . $helper->correctNumber(intval($addititonalChangesDevices['change_eur'])) . ' EUR | ' . $helper->correctNumber((intval($BLock3rdData['EURcash']) + intval($addititonalChangesDevices['change_eur']))) . ' EUR |
';
#
# Teljes összeg KP + kartya
#
print '
| ' . $langs->trans('TotalAmount') . ' |
| | ' . $langs->trans('DailyIncomeCash') . ' | ' . $langs->trans('DailyIncomeCard') . ' | ' . $langs->trans('TotalAmount') . ' |
| HUF: | ' . $helper->correctNumber($BLock3rdData['HUFcash']) . ' HUF | ' . $helper->correctNumber($BLock3rdData['HUFcard']) . ' HUF | ' . $helper->correctNumber(intval($BLock3rdData['HUFcash'] + intval($BLock3rdData['HUFcard']))) . ' HUF |
| EUR: | ' . $helper->correctNumber($BLock3rdData['EURcash']) . ' EUR | ' . $helper->correctNumber($BLock3rdData['EURcard']) . ' EUR | ' . $helper->correctNumber(intval($BLock3rdData['EURcash']) + intval($BLock3rdData['EURcard'])) . ' EUR |
';
#
# Unprinted factures
#
print '
';
print '| Unprinted factures |
';
print '
';
print $dailyClosing->unprintedFactures($packageHistoryRecordObj->fk_group_id, $user_id, $from);
#
# Checkbox
#
print '
';
print '
' . $langs->trans('EverythingOK') . '
';
#
# Confirm buttons
#
print '
';
print '
';
print ' ';
print '