| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <?php
- print '<tr><td colspan="4" class="dailyClosingHeader">' . $name . '</td></tr>';
- print '<tr><td colspan="4">' . $langs->trans('UserGroupName') . ': <b>' . $JSON->block1->groupuser_name . '</b></td></tr>
- <tr><td colspan="4">' . $langs->trans('ToolGroupName') . ': <b> ' . $JSON->block1->grouptool_name . '</b></td></tr>
- <tr><td colspan="4">' . $langs->trans('PackageName') . ': <b>' . $JSON->block1->package_name . '</b></td></tr>
- <tr><td style="text-align: center; background-color: lightgrey;" colspan="4">' . $langs->trans('DevicesList') . '</td></tr>
- <tr style="height: 25px; text-align: center; background-color: lightgrey;"><td style="width:200px;">Device name</td><td style="width:350px;">Device type</td><td colspan="2" class="fields" style="text-align: center; background-color: rgb(163, 0, 51); color:white;">' . $langs->trans('Withholding') . '</td></tr>';
- if (isset($JSON->block2)) {
- foreach ($JSON->block2 as $device) {
- $whAmount = $device->withholding != '' ? $device->withholding . ' HUF' : '';
- print '<tr style="height: 35px;"><td style="width:200px;">' . $device->ref . '</td><td style="width:350px;">' . $device->title . '</td><td colspan="2" class="fields" style="text-align: center;">' . $whAmount . '</td></tr>';
- }
- }
- if (isset($JSON->additionals)) {
- foreach ($JSON->additionals as $additionalKey => $additionalValue) {
- $whAmountAdditionals = $additionalValue->withholding != '' ? $additionalValue->withholding . ' HUF' : '';
- print '<tr style="height: 35px;"><td style="width:200px;">' . $helper->getAdditionalTitle($additionalKey) . '</td><td style="width:350px;">' . $additionalValue->pieces . '</td><td colspan="2" class="fields" style="text-align: center;">' . $whAmountAdditionals . '</td></tr>';
- }
- }
- if (isset($JSON->block3)) {
- foreach ($JSON->block3 as $changeKey => $changeValue) {
- print '<tr style="height: 35px;"><td style="width:200px;">Change ' . $changeKey . '</td><td style="width:350px;">' . $changeValue . ' ' . $changeKey . '</td><td class="fields"></td></tr>';
- }
- }
- print '<tr><td style="text-align: center; background-color: lightgrey;" colspan="2">' . $langs->trans('DailyIncomeCash') . '</td><td style="text-align: center; background-color: rgb(163, 0, 51); color:white;" colspan="2">' . $langs->trans('Withhold') . '</td></tr>';
- $WHHUF = isset($JSON->block4->WHHUFcash) ? $JSON->block4->WHHUFcash . ' HUF' : '';
- print '<tr style="height: 35px;"><td style="width:200px;">' . $langs->trans('DailyIncomeCash') . ' HUF:</td><td style="width:350px; color:green; font-weight: bold;">' . $helper->correctNumber($JSON->block4->HUFcash) . ' HUF</td><td colspan="2" style="text-align: center;">' . $WHHUF . '</td></tr>';
- $WHEUR = isset($JSON->block4->WHEURcash) ? $JSON->block4->WHEURcash . ' HUF' : '';
- print '<tr style="height: 35px;"><td style="width:200px;">' . $langs->trans('DailyIncomeCash') . ' EUR:</td><td style="width:350px; color:green; font-weight: bold;">' . $helper->correctNumber($JSON->block4->EURcash) . ' EUR</td><td colspan="2" style="text-align: center;">' . $WHEUR . '</td></tr>';
- print '<tr><td style="text-align: center; background-color: lightgrey;" colspan="4">' . $langs->trans('DailyIncomeCard') . '</td></tr>';
- $WHHUF = isset($JSON->block4->WHHUFcash) ? $JSON->block4->WHHUFcash . ' HUF' : '';
- print '<tr style="height: 35px;"><td style="width:200px;">' . $langs->trans('DailyIncomeCard') . ' HUF:</td><td style="width:350px; color:green; font-weight: bold;">' . $helper->correctNumber($JSON->block4->HUFcard) . ' HUF</td></tr>';
- $WHEUR = isset($JSON->block4->WHEURcash) ? $JSON->block4->WHEURcash . ' HUF' : '';
- print '<tr style="height: 35px;"><td style="width:200px;">' . $langs->trans('DailyIncomeCard') . ' EUR:</td><td style="width:350px; color:green; font-weight: bold;">' . $helper->correctNumber($JSON->block4->EURcard) . ' EUR</td></tr>';
- print '<tr><td colspan="4"><table style="width: 100%;">';
- print '<tr><td style="text-align: center; background-color: lightgrey;" colspan="4">' . $langs->trans('TotalAmountCash') . '</td></tr>';
- print '<tr style="text-align: center;"><td style="width:100px;"> </td><td>' . $langs->trans('DailyIncomeCash') . '</td><td>' . $langs->trans('Change') . '</td><td>' . $langs->trans('TotalAmountCash') . '</td></tr>';
- print '<tr style="height: 35px;"><td style="width:200px;"> HUF:</td></td><td style="text-align: center;">' . $helper->correctNumber($JSON->block4->HUFcash) . ' HUF </td><td style="text-align: center;"> '. $helper->correctNumber(intval($JSON->block3->HUF)) . ' HUF </td><td style="text-align: center;"> <b>' . $helper->correctNumber(intval($JSON->block4->HUFcash) + intval($JSON->block3->HUF)) . ' HUF</b></td></tr>';
- print '<tr style="height: 35px;"><td style="width:200px;"> EUR:</td></td><td style="text-align: center;">' . $helper->correctNumber($JSON->block4->EURcash) . ' EUR </td><td style="text-align: center;"> ' . $helper->correctNumber(intval($JSON->block3->EUR)) . ' EUR </td><td style="text-align: center;"> <b>' . $helper->correctNumber(intval($JSON->block4->EURcash) + intval($JSON->block3->EUR)) . ' EUR</b></td></tr>';
- print '</table></td></tr>';
- print '<tr><td colspan="4"><table style="width: 100%;">';
- print '<tr><td style="text-align: center; background-color: lightgrey;" colspan="4">' . $langs->trans('TotalAmount') . '</td></tr>';
- print '<tr style="text-align: center;"><td style="width:100px;"> </td><td>' . $langs->trans('DailyIncomeCash') . '</td><td>' . $langs->trans('DailyIncomeCard') . '</td><td>' . $langs->trans('TotalAmount') . '</td></tr>';
- print '<tr style="height: 35px;"><td style="width:200px;"> HUF:</td><td style="text-align: center;">' . $helper->correctNumber($JSON->block4->HUFcash) . ' HUF </td><td style="text-align: center;"> ' . $helper->correctNumber($JSON->block4->HUFcard) . ' HUF </td><td style="text-align: center;"> <b>' . $helper->correctNumber(intval($JSON->block4->HUFcash) + intval($JSON->block4->HUFcard)) . ' HUF</b></td></tr>';
- print '<tr style="height: 35px;"><td style="width:200px;"> EUR:</td><td style="text-align: center;">' . $helper->correctNumber($JSON->block4->EURcash) . ' EUR </td><td style="text-align: center;"> ' . $helper->correctNumber($JSON->block4->EURcard) . ' EUR </td><td style="text-align: center;"> <b>' . $helper->correctNumber(intval($JSON->block4->EURcash) + intval($JSON->block4->EURcard)) . ' EUR</b></td></tr>';
- print '</table></td></tr>';
- print '</table> ';
- #
- # Print buttons
- #
- print '<div style="width: 50%; height: 50px; display:block;">';
- if (isset($Block1stDataClosed->delivery_pdf)) {
- print '<div style="float:left;"><a href="/document.php?modulepart=settlements&file=pdf/' . basename($Block1stDataClosed->delivery_pdf) . '&entity=1" target="_blank" class="printbutton">' . $langs->trans('PrintDelivery') . '</a></div>';
- }
- if (isset($Block1stDataClosed->income_pdf)) {
- print '<div style="float:right;"><a href="/document.php?modulepart=settlements&file=pdf/' . basename($Block1stDataClosed->income_pdf) . '&entity=1" target="_blank" class="printbutton">' . $langs->trans('PrintIncome') . '</a></div>';
- }
- print '</div>
- </div>';
- // End of page
- ?>
|