shareneus 1.4.35 → 1.4.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.d.ts +290 -0
- package/dist/{services → accounting/counter-sales}/auto-sales-receipt-pdf.service.js +26 -26
- package/dist/accounting/counter-sales/pos-receipt-pdf.d.ts +156 -0
- package/dist/{services → accounting/counter-sales}/pos-receipt-pdf.js +20 -20
- package/dist/accounting/counter-sales/sales-receipt-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-pdf.service.js +28 -27
- package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +18 -0
- package/dist/{services → accounting/counter-sales}/sales-receipt-print.service.js +67 -67
- package/dist/accounting/credit-note/cn-print.service.d.ts +14 -0
- package/dist/{services → accounting/credit-note}/cn-print.service.js +37 -37
- package/dist/accounting/credit-note/credit-note-pdf.service.d.ts +272 -0
- package/dist/{services → accounting/credit-note}/credit-note-pdf.service.js +18 -18
- package/dist/accounting/credit-note/credit-note-totals.service.d.ts +25 -0
- package/dist/{services → accounting/credit-note}/credit-note-totals.service.js +32 -32
- package/dist/accounting/debit-note/debit-note-pdf.service.d.ts +331 -0
- package/dist/{services → accounting/debit-note}/debit-note-pdf.service.js +16 -16
- package/dist/accounting/debit-note/debit-note-print.service.d.ts +14 -0
- package/dist/{services → accounting/debit-note}/debit-note-print.service.js +37 -37
- package/dist/accounting/debit-note/debit-note-totals.service.d.ts +22 -0
- package/dist/{services → accounting/debit-note}/debit-note-totals.service.js +29 -29
- package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +357 -0
- package/dist/{services → accounting/invoice}/hc-inv-pdf.service.js +44 -44
- package/dist/accounting/invoice/inv-pdf.service.d.ts +314 -0
- package/dist/{services → accounting/invoice}/inv-pdf.service.js +56 -56
- package/dist/accounting/invoice/inv-print.service.d.ts +16 -0
- package/dist/{services → accounting/invoice}/inv-print.service.js +63 -63
- package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → accounting/invoice}/invoice-landscape-pdf.service.js +31 -31
- package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +323 -0
- package/dist/{services → accounting/invoice}/invoice-letterhead-pdf.service.js +56 -56
- package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +275 -0
- package/dist/{services → accounting/invoice}/invoice-portrait-pdf.js +53 -53
- package/dist/accounting/invoice/invoice-total.service.d.ts +43 -0
- package/dist/{services → accounting/invoice}/invoice-total.service.js +79 -79
- package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +303 -0
- package/dist/accounting/invoice/shared-inv-pdf.service.js +763 -0
- package/dist/accounting/payment-receive/payment-pdf.service.d.ts +618 -0
- package/dist/{services → accounting/payment-receive}/payment-pdf.service.js +5 -5
- package/dist/accounting/payment-receive/receipt-print.service.d.ts +4 -0
- package/dist/{services → accounting/payment-receive}/receipt-print.service.js +6 -6
- package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/customer-balances-pdf.service.js +8 -8
- package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +228 -0
- package/dist/{services → accounting/payment-receive/reports/pdf}/payment-report-pdf.service.js +4 -4
- package/dist/aggregation/aggregation.d.ts +4 -0
- package/dist/aggregation/aggregation.js +13 -13
- package/dist/appointments/appointments/appointment-total.service.d.ts +25 -0
- package/dist/{services → appointments/appointments}/appointment-total.service.js +38 -38
- package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +318 -0
- package/dist/{services → appointments/consultations}/consultation-fee-receipt.service.js +17 -17
- package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +207 -0
- package/dist/{services → appointments/consultations}/consultation-full-pdf.service.js +11 -11
- package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +266 -0
- package/dist/{services → appointments/consultations}/consultation-letterhead-pdf.service.js +16 -16
- package/dist/appointments/consultations/consultation-pdf.service.d.ts +306 -0
- package/dist/{services → appointments/consultations}/consultation-pdf.service.js +16 -16
- package/dist/enums/cache-enums.d.ts +33 -0
- package/dist/enums/code-enums.d.ts +266 -0
- package/dist/enums/enums.d.ts +329 -0
- package/dist/enums/industry-enums.d.ts +16 -0
- package/dist/excel-files/cust-balance-excel.service.d.ts +26 -0
- package/dist/excel-files/cust-balance-excel.service.js +5 -5
- package/dist/excel-files/expiring-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
- package/dist/excel-files/insurance-expire-excel.service.d.ts +23 -0
- package/dist/excel-files/insurance-expire-excel.service.js +4 -4
- package/dist/excel-files/invoice-wise-excel.service.d.ts +26 -0
- package/dist/excel-files/invoice-wise-excel.service.js +3 -3
- package/dist/excel-files/next-service-date-excel.service.d.ts +25 -0
- package/dist/excel-files/next-service-date-excel.service.js +5 -5
- package/dist/excel-files/payment-receive-excel.service.d.ts +25 -0
- package/dist/excel-files/payment-receive-excel.service.js +6 -6
- package/dist/excel-files/payments-made-excel.service.d.ts +25 -0
- package/dist/excel-files/payments-made-excel.service.js +6 -6
- package/dist/excel-files/repair-orders-excel.service.d.ts +24 -0
- package/dist/excel-files/repair-orders-excel.service.js +10 -10
- package/dist/excel-files/sales-by-service-details-excel.service.d.ts +0 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
- package/dist/excel-files/scheduled-drug-summary-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
- package/dist/excel-files/scheduled-drugs-excel.service.d.ts +24 -0
- package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
- package/dist/excel-files/spares-issue-excel.service.d.ts +26 -0
- package/dist/excel-files/spares-issue-excel.service.js +14 -14
- package/dist/excel-files/stock-excel.service.d.ts +23 -0
- package/dist/excel-files/stock-excel.service.js +3 -3
- package/dist/excel-files/ven-balance-excel.service.d.ts +27 -0
- package/dist/excel-files/ven-balance-excel.service.js +3 -3
- package/dist/gst/excel/GSTR-RO-excel.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/GSTR-RO-excel.service.js +3 -3
- package/dist/gst/excel/GSTR1-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR1-excel.service.js +7 -7
- package/dist/gst/excel/GSTR2-excel.service.d.ts +16 -0
- package/dist/{excel-files → gst/excel}/GSTR2-excel.service.js +6 -6
- package/dist/gst/excel/tally-sales-import.service.d.ts +27 -0
- package/dist/{excel-files → gst/excel}/tally-sales-import.service.js +3 -3
- package/dist/index.d.ts +124 -0
- package/dist/index.js +102 -102
- package/dist/inventory/items/issue-parts-pdf.service.d.ts +303 -0
- package/dist/{services → inventory/items}/issue-parts-pdf.service.js +45 -45
- package/dist/inventory/items/item-bar-code-label-pdf.d.ts +127 -0
- package/dist/{services → inventory/items}/item-bar-code-label-pdf.js +3 -3
- package/dist/inventory/items/item-detais-pdf.d.ts +121 -0
- package/dist/{services → inventory/items}/item-detais-pdf.js +1 -1
- package/dist/inventory/items/item-price-for-pricelist.d.ts +1 -0
- package/dist/{services → inventory/items}/item-price-for-pricelist.js +44 -50
- package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-details.js +4 -4
- package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +23 -0
- package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-summary.js +4 -4
- package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +49 -0
- package/dist/{services → inventory/items/reports/pdf}/expiring-drugs-pdf.service.js +6 -6
- package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +229 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-details-pdf.js +4 -4
- package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +228 -0
- package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-summary-pdf.js +3 -3
- package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/items/reports/pdf}/reorder-point-pdf.service.js +3 -3
- package/dist/inventory/material-out/mout-pdf.service.d.ts +324 -0
- package/dist/{services → inventory/material-out}/mout-pdf.service.js +19 -19
- package/dist/inventory/transfer-order/transfer-order-pdf.service.d.ts +48 -0
- package/dist/{services → inventory/transfer-order}/transfer-order-pdf.service.js +2 -2
- package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +227 -0
- package/dist/{services → purchases/payment-made/reports/pdf}/vendor-balances-pdf.service.js +7 -7
- package/dist/purchases/purchase-order/po-totals.service.d.ts +24 -0
- package/dist/{services → purchases/purchase-order}/po-totals.service.js +29 -29
- package/dist/purchases/purchase-order/purchase-order-pdf.service.d.ts +526 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-pdf.service.js +42 -42
- package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +8 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-print.service.js +46 -46
- package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +23 -0
- package/dist/{services → purchases/purchase-order}/purchase-order-totals.service.js +55 -55
- package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.d.ts +491 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-pdf.service.js +29 -29
- package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +6 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-print.service.js +31 -31
- package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +24 -0
- package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-totals.service.js +38 -38
- package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.d.ts +271 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-pdf.service.js +18 -18
- package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +14 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-print.service.js +34 -34
- package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +22 -0
- package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-totals.service.js +31 -31
- package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +416 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-pdf.service.js +30 -30
- package/dist/sales/delivery-challan/dc-landscape-without-price-pdf.service.d.ts +400 -0
- package/dist/{services → sales/delivery-challan}/dc-landscape-without-price-pdf.service.js +26 -26
- package/dist/sales/delivery-challan/dc-without-price-pdf.service.d.ts +271 -0
- package/dist/{services → sales/delivery-challan}/dc-without-price-pdf.service.js +17 -17
- package/dist/sales/delivery-challan/delivery-challan-pdf.service.d.ts +269 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-pdf.service.js +18 -18
- package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +12 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-print.service.js +30 -30
- package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +27 -0
- package/dist/{services → sales/delivery-challan}/delivery-challan-totals.js +33 -33
- package/dist/sales/reports/excel/analysis-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/analysis-excel.service.js +4 -4
- package/dist/sales/reports/excel/category-wise-item-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/category-wise-item-excel.service.js +10 -10
- package/dist/sales/reports/excel/cust-wise-sales-details.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-details.js +5 -5
- package/dist/sales/reports/excel/cust-wise-sales-summary-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-summary-excel.service.js +5 -5
- package/dist/sales/reports/excel/item-wise-doctor-sale-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/item-wise-doctor-sale-excel.service.js +7 -7
- package/dist/sales/reports/excel/items-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/items-wise-sales-excel.service.js +10 -10
- package/dist/sales/reports/excel/manf-wise-sales-excel.service.d.ts +24 -0
- package/dist/{excel-files → sales/reports/excel}/manf-wise-sales-excel.service.js +4 -4
- package/dist/sales/reports/excel/operator-wise-details.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-details.js +4 -4
- package/dist/sales/reports/excel/operator-wise-summary.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/operator-wise-summary.js +4 -4
- package/dist/sales/reports/excel/sa-wise-labor-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-labor-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sa-wise-part-sales-excel.service.d.ts +23 -0
- package/dist/{excel-files → sales/reports/excel}/sa-wise-part-sales-excel.service.js +6 -6
- package/dist/sales/reports/excel/sale-summary-excel.service.d.ts +25 -0
- package/dist/{excel-files → sales/reports/excel}/sale-summary-excel.service.js +3 -3
- package/dist/sales/reports/pdf/analysis-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/analysis-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/category-wise-item-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/category-wise-item-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/cust-wise-sales-summary-pdf.service.js +8 -9
- package/dist/sales/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-doctor-sale-pdf.service.js +4 -4
- package/dist/sales/reports/pdf/item-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/item-wise-sales-pdf.service.js +7 -8
- package/dist/sales/reports/pdf/manf-wise-sales-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/manf-wise-sales-pdf.service.js +6 -6
- package/dist/sales/reports/pdf/operator-wise-details-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-details-pdf.service.js +9 -9
- package/dist/sales/reports/pdf/operator-wise-summary-pdf.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/operator-wise-summary-pdf.js +8 -8
- package/dist/sales/reports/pdf/sales-by-service-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/sales-by-service-pdf.service.js +7 -7
- package/dist/sales/reports/pdf/scheduled-drug-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-pdf.service.js +8 -8
- package/dist/sales/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +228 -0
- package/dist/{services → sales/reports/pdf}/scheduled-drug-summary-pdf.service.js +5 -5
- package/dist/sales/sales/equipment-design-pdf.service.d.ts +121 -0
- package/dist/{services → sales/sales}/equipment-design-pdf.service.js +12 -12
- package/dist/sales/sales/pack-ship-pdf.service.d.ts +262 -0
- package/dist/{services → sales/sales}/pack-ship-pdf.service.js +5 -5
- package/dist/sales/sales/pack-ship-print.service.d.ts +11 -0
- package/dist/{services → sales/sales}/pack-ship-print.service.js +27 -27
- package/dist/sales/sales/sales-pdf.service.d.ts +275 -0
- package/dist/{services → sales/sales}/sales-pdf.service.js +25 -25
- package/dist/sales/sales/sales-print.service.d.ts +15 -0
- package/dist/{services → sales/sales}/sales-print.service.js +58 -58
- package/dist/sales/sales/sales-totals.service.d.ts +27 -0
- package/dist/{services → sales/sales}/sales-totals.service.js +34 -34
- package/dist/services/checklist-pdf.d.ts +57 -0
- package/dist/services/checklist-pdf.js +5 -5
- package/dist/services/checklists-pdf.d.ts +12 -0
- package/dist/services/checklists-pdf.js +1 -1
- package/dist/services/est.print-service.d.ts +64 -0
- package/dist/services/est.print-service.js +151 -151
- package/dist/services/next-service-date-pdf.service.d.ts +228 -0
- package/dist/services/next-service-date-pdf.service.js +2 -2
- package/dist/services/reports/insurance-expire-pdf.service.d.ts +227 -0
- package/dist/services/{insurance-expire-pdf.service.js → reports/insurance-expire-pdf.service.js} +2 -2
- package/dist/services/reports/repair-orders-pdf.service.d.ts +229 -0
- package/dist/services/{repair-orders-pdf.service.js → reports/repair-orders-pdf.service.js} +4 -4
- package/dist/services/ro-pdf.service.d.ts +1060 -0
- package/dist/services/ro-pdf.service.js +82 -82
- package/dist/services/ro-print-service.d.ts +45 -0
- package/dist/services/ro-print-service.js +88 -88
- package/dist/services/ro-totals.service.d.ts +65 -0
- package/dist/services/ro-totals.service.js +123 -123
- package/dist/services/separate-wo-print.service.d.ts +494 -0
- package/dist/services/separate-wo-print.service.js +10 -10
- package/dist/services/shared-inv-pdf.service.d.ts +303 -0
- package/dist/services/shared-inv-pdf.service.js +46 -46
- package/dist/services/technician-pdf.service.d.ts +221 -0
- package/dist/services/technician-pdf.service.js +11 -11
- package/dist/services/technician-print.service.d.ts +5 -0
- package/dist/services/technician-print.service.js +10 -10
- package/dist/shared/math-operations.d.ts +53 -0
- package/dist/shared/math-operations.js +184 -0
- package/dist/shared/shared-services/shared-pdf.service.d.ts +926 -0
- package/dist/{services → shared/shared-services}/shared-pdf.service.js +120 -120
- package/dist/shared/shared-services/shared-print.service.d.ts +49 -0
- package/dist/{services → shared/shared-services}/shared-print.service.js +68 -68
- package/dist/shared/util.d.ts +3 -0
- package/dist/shared/util.js +15 -0
- package/dist/tasks/meetings/meeting-pdf.d.ts +107 -0
- package/dist/{services → tasks/meetings}/meeting-pdf.js +15 -15
- package/dist/tasks/tasks/task-pdf.service.d.ts +127 -0
- package/dist/{services → tasks/tasks}/task-pdf.service.js +12 -12
- package/dist/tasks/tasks/task-reports-pdf.service.d.ts +94 -0
- package/dist/{services → tasks/tasks}/task-reports-pdf.service.js +11 -11
- package/dist/utils/my-date.d.ts +104 -0
- package/dist/{shared → utils}/my-date.js +31 -31
- package/dist/utils/tr-utils.d.ts +41 -0
- package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
- package/package.json +2 -1
- package/tsconfig.json +1 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PosReceiptPrintService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
5
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
6
6
|
class PosReceiptPrintService {
|
|
7
7
|
static GetPrint(InvoicePDFData, size) {
|
|
8
8
|
// console.log('InvoicePDFData', InvoicePDFData);
|
|
9
|
-
if (
|
|
9
|
+
if (tr_utils_1.TrUtils.IsNull(InvoicePDFData.Name)) {
|
|
10
10
|
InvoicePDFData.Name = '';
|
|
11
11
|
}
|
|
12
12
|
let dd = {
|
|
@@ -151,7 +151,7 @@ class PosReceiptPrintService {
|
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
153
|
static GetMainHeaderInfo(InvoicePDFData) {
|
|
154
|
-
if (!
|
|
154
|
+
if (!tr_utils_1.TrUtils.IsNull(InvoicePDFData.Image)) {
|
|
155
155
|
return {
|
|
156
156
|
columns: [{ image: InvoicePDFData.Image, width: 60, height: 60, marginBottom: 5 },
|
|
157
157
|
{
|
|
@@ -182,10 +182,10 @@ class PosReceiptPrintService {
|
|
|
182
182
|
}
|
|
183
183
|
static GetHeaderInfo(InvoicePDFData, marginleft) {
|
|
184
184
|
let TaxInfo = [];
|
|
185
|
-
if (!
|
|
185
|
+
if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.GSTIN)) {
|
|
186
186
|
TaxInfo.push({ text: 'GSTIN : ' + InvoicePDFData.Entity.GSTIN, marginTop: 2, marginLeft: marginleft, alignment: 'left', fontSize: 9, width: 'auto' });
|
|
187
187
|
}
|
|
188
|
-
if (!
|
|
188
|
+
if (!tr_utils_1.TrUtils.IsEmpty(InvoicePDFData.Entity.DLNo)) {
|
|
189
189
|
TaxInfo.push({ text: 'D.L.NO : ' + InvoicePDFData.Entity.DLNo, marginTop: 2, marginLeft: 5, alignment: 'left', fontSize: 9, width: '*' });
|
|
190
190
|
}
|
|
191
191
|
TaxInfo.push(this.GetBillofSupplyName(InvoicePDFData.Settings));
|
|
@@ -225,30 +225,30 @@ class PosReceiptPrintService {
|
|
|
225
225
|
}
|
|
226
226
|
static GetTotalDeetails(InvoicePDFData, size) {
|
|
227
227
|
let TotalData = [];
|
|
228
|
-
if (!
|
|
228
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.STotal)) {
|
|
229
229
|
// TotalData.push({ text: 'Sub Total : ' + InvoicePDFData.STotal, style: ['headerstyle'], alignment: 'right', marginRight: 5, })
|
|
230
230
|
TotalData.push({ name: 'Sub Total', value: InvoicePDFData.STotal });
|
|
231
231
|
}
|
|
232
|
-
if (!
|
|
232
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(this.GetDiscountOverall(InvoicePDFData))) {
|
|
233
233
|
// TotalData.push({ text: 'Discount : -' + this.GetDiscountOverall(InvoicePDFData), style: ['headerstyle'], alignment: 'right', marginRight: 5, });
|
|
234
234
|
TotalData.push({ name: 'Discount', value: this.GetDiscountOverall(InvoicePDFData) });
|
|
235
235
|
}
|
|
236
|
-
if (!
|
|
237
|
-
TotalData.push({ name: 'Tax Amount', value:
|
|
236
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.CustPartITax) && tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.CustRetRoundedTotal)) {
|
|
237
|
+
TotalData.push({ name: 'Tax Amount', value: tr_utils_1.TrUtils.FixPriceValue(InvoicePDFData.CustPartITax) });
|
|
238
238
|
}
|
|
239
|
-
if (!
|
|
240
|
-
TotalData.push({ name: 'Round off', value:
|
|
239
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.Round) && tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.CustRetRoundedTotal)) {
|
|
240
|
+
TotalData.push({ name: 'Round off', value: tr_utils_1.TrUtils.FixPriceValue(InvoicePDFData.Round) });
|
|
241
241
|
}
|
|
242
|
-
if (!
|
|
242
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.CustRetRoundedTotal)) {
|
|
243
243
|
// TotalData.push({ text: 'Total : ' + InvoicePDFData.CustRoundedTotal, style: ['headerstyle'], alignment: 'right', marginRight: 5, });
|
|
244
244
|
TotalData.push({ name: 'Total', value: InvoicePDFData.CustNonRetRoundedTotal });
|
|
245
245
|
TotalData.push({ name: 'Returns Total', value: InvoicePDFData.CustRetRoundedTotal });
|
|
246
246
|
}
|
|
247
|
-
if (!
|
|
247
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.CustRoundedTotal)) {
|
|
248
248
|
// TotalData.push({ text: 'Total : ' + InvoicePDFData.CustRoundedTotal, style: ['headerstyle'], alignment: 'right', marginRight: 5, });
|
|
249
249
|
TotalData.push({ name: 'Final Total', value: InvoicePDFData.CustRoundedTotal });
|
|
250
250
|
}
|
|
251
|
-
if (!
|
|
251
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(InvoicePDFData.Due)) {
|
|
252
252
|
// TotalData.push({ text: 'Total : ' + InvoicePDFData.CustRoundedTotal, style: ['headerstyle'], alignment: 'right', marginRight: 5, });
|
|
253
253
|
TotalData.push({ name: 'Due', value: InvoicePDFData.Due });
|
|
254
254
|
}
|
|
@@ -275,11 +275,11 @@ class PosReceiptPrintService {
|
|
|
275
275
|
static GrandTotalTable(data) {
|
|
276
276
|
var body = [];
|
|
277
277
|
data.forEach((row) => {
|
|
278
|
-
if (!
|
|
278
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(row.value) || row.name === 'Total') {
|
|
279
279
|
var dataRow = [];
|
|
280
280
|
dataRow.push({ text: (row.name).toString(), noWrap: true, bold: true, style: ['headerstyle'], fontSize: 10 });
|
|
281
281
|
dataRow.push({ text: ':', style: ['headerstyle'], bold: true, fontSize: 10 });
|
|
282
|
-
if (!
|
|
282
|
+
if (!tr_utils_1.TrUtils.IsNull(row.value)) {
|
|
283
283
|
dataRow.push({ text: (row.value).toString(), noWrap: true, alignment: 'right', bold: true, style: ['headerstyle'], fontSize: 10, marginRight: 5 });
|
|
284
284
|
}
|
|
285
285
|
else {
|
|
@@ -297,7 +297,7 @@ class PosReceiptPrintService {
|
|
|
297
297
|
// let OveralDisc: number = TrUtils.SetValueToZeroIfNull(Number(InvoicePDFData.Disc)) +
|
|
298
298
|
// TrUtils.SetValueToZeroIfNull(Number(InvoicePDFData.CustPartsDiscTotal));
|
|
299
299
|
// console.log(InvoicePDFData.Disc,InvoicePDFData.CustPartsDiscTotal);
|
|
300
|
-
return
|
|
300
|
+
return tr_utils_1.TrUtils.FixPriceValue(Number(InvoicePDFData.CustPartsDiscTotal));
|
|
301
301
|
}
|
|
302
302
|
static CustomerAndVehicleDetailsAfterLine(size) {
|
|
303
303
|
let length = 575;
|
|
@@ -405,11 +405,11 @@ class PosReceiptPrintService {
|
|
|
405
405
|
dataRow.push({ text: item.Make, alignment: 'center', style: ['headerstyle'], });
|
|
406
406
|
dataRow.push({ text: item.Sch, alignment: 'center', style: ['headerstyle'], });
|
|
407
407
|
dataRow.push({ text: item.Ret ? -item.Qty : item.Qty, alignment: 'right', style: ['headerstyle'], });
|
|
408
|
-
dataRow.push({ text:
|
|
408
|
+
dataRow.push({ text: tr_utils_1.TrUtils.FixPriceValue(item.UnPr), alignment: 'right', style: ['headerstyle'], });
|
|
409
409
|
if (ShowTaxColumn) {
|
|
410
410
|
dataRow.push({ text: item.TaxName, alignment: 'center', style: ['headerstyle'], });
|
|
411
411
|
}
|
|
412
|
-
dataRow.push({ text: item.Ret ? '-' +
|
|
412
|
+
dataRow.push({ text: item.Ret ? '-' + tr_utils_1.TrUtils.FixPriceValue(item.LineTotal) : tr_utils_1.TrUtils.FixPriceValue(item.LineTotal), alignment: 'right', style: ['headerstyle'], });
|
|
413
413
|
body.push(dataRow);
|
|
414
414
|
if (index + 1 === j * 9) {
|
|
415
415
|
j++;
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
export declare class SalesReceiptpdfService {
|
|
2
|
+
FontSize: number;
|
|
3
|
+
static GetInvoicePrint(ROPrintData: any, numberofCopies: any, isotherIndustry: boolean, moreDiscDetails: boolean): {
|
|
4
|
+
info: {
|
|
5
|
+
title: string;
|
|
6
|
+
};
|
|
7
|
+
background: (currentPage: any, pageSize: any) => any;
|
|
8
|
+
header: (currentPage: any, pageCount: any) => {
|
|
9
|
+
text: string;
|
|
10
|
+
alignment: string;
|
|
11
|
+
marginRight: number;
|
|
12
|
+
fontSize: number;
|
|
13
|
+
marginTop: number;
|
|
14
|
+
};
|
|
15
|
+
pageMargins: number[];
|
|
16
|
+
content: any[];
|
|
17
|
+
styles: {
|
|
18
|
+
temp2header: {
|
|
19
|
+
fontSize: number;
|
|
20
|
+
bold: boolean;
|
|
21
|
+
alignment: string;
|
|
22
|
+
};
|
|
23
|
+
tableheader1: {
|
|
24
|
+
bold: boolean;
|
|
25
|
+
fontFamily: string;
|
|
26
|
+
margin: number[];
|
|
27
|
+
alignment: string;
|
|
28
|
+
};
|
|
29
|
+
header: {
|
|
30
|
+
fontSize: number;
|
|
31
|
+
bold: boolean;
|
|
32
|
+
alignment: string;
|
|
33
|
+
};
|
|
34
|
+
meetingHeader: {
|
|
35
|
+
fontSize: number;
|
|
36
|
+
bold: boolean;
|
|
37
|
+
};
|
|
38
|
+
Receiptheader: {
|
|
39
|
+
fontSize: number;
|
|
40
|
+
bold: boolean;
|
|
41
|
+
alignment: string;
|
|
42
|
+
margin: number[];
|
|
43
|
+
};
|
|
44
|
+
InlineHeader: {
|
|
45
|
+
fontSize: number;
|
|
46
|
+
bold: boolean;
|
|
47
|
+
alignment: string;
|
|
48
|
+
margin: number[];
|
|
49
|
+
};
|
|
50
|
+
TaskHeading: {
|
|
51
|
+
fontSize: number;
|
|
52
|
+
bold: boolean;
|
|
53
|
+
margin: number[];
|
|
54
|
+
};
|
|
55
|
+
lettersSize: {
|
|
56
|
+
fontSize: number;
|
|
57
|
+
margin: number[];
|
|
58
|
+
};
|
|
59
|
+
tablexample: {
|
|
60
|
+
margin: number[];
|
|
61
|
+
};
|
|
62
|
+
hedstyl: {
|
|
63
|
+
margin: number[];
|
|
64
|
+
};
|
|
65
|
+
header2: {
|
|
66
|
+
fontSize: number;
|
|
67
|
+
bold: boolean;
|
|
68
|
+
alignment: string;
|
|
69
|
+
margin: number[];
|
|
70
|
+
};
|
|
71
|
+
header1: {
|
|
72
|
+
fontSize: number;
|
|
73
|
+
bold: boolean;
|
|
74
|
+
alignment: string;
|
|
75
|
+
decoration: string;
|
|
76
|
+
margin: number[];
|
|
77
|
+
};
|
|
78
|
+
ws_adrs_center: {
|
|
79
|
+
fontSize: number;
|
|
80
|
+
alignment: string;
|
|
81
|
+
};
|
|
82
|
+
ws_adrs_center1: {
|
|
83
|
+
fontSize: number;
|
|
84
|
+
alignment: string;
|
|
85
|
+
};
|
|
86
|
+
ws_adrs_left: {
|
|
87
|
+
fontSize: number;
|
|
88
|
+
alignment: string;
|
|
89
|
+
};
|
|
90
|
+
ws_adrs_left1: {
|
|
91
|
+
fontSize: number;
|
|
92
|
+
alignment: string;
|
|
93
|
+
};
|
|
94
|
+
columnheader: {
|
|
95
|
+
margin: number[];
|
|
96
|
+
};
|
|
97
|
+
tableExample: {
|
|
98
|
+
margin: number[];
|
|
99
|
+
fontSize: number;
|
|
100
|
+
};
|
|
101
|
+
tableExamplemargin: {
|
|
102
|
+
margin: number[];
|
|
103
|
+
fontSize: number;
|
|
104
|
+
};
|
|
105
|
+
textcust: {
|
|
106
|
+
fontSize: number;
|
|
107
|
+
margin: number[];
|
|
108
|
+
};
|
|
109
|
+
column: {
|
|
110
|
+
margin: number[];
|
|
111
|
+
};
|
|
112
|
+
tableheader: {
|
|
113
|
+
bold: boolean;
|
|
114
|
+
fontSize: number;
|
|
115
|
+
margin: number[];
|
|
116
|
+
alignment: string;
|
|
117
|
+
};
|
|
118
|
+
tableheader2: {
|
|
119
|
+
fontSize: number;
|
|
120
|
+
margin: number[];
|
|
121
|
+
alignment: string;
|
|
122
|
+
opacity: number;
|
|
123
|
+
};
|
|
124
|
+
hed: {
|
|
125
|
+
fontSize: number;
|
|
126
|
+
bold: boolean;
|
|
127
|
+
};
|
|
128
|
+
hed2: {
|
|
129
|
+
fontSize: number;
|
|
130
|
+
};
|
|
131
|
+
TotalsStyles: {
|
|
132
|
+
marginTop: number;
|
|
133
|
+
lineHeight: number;
|
|
134
|
+
fontSize: number;
|
|
135
|
+
margin: number[];
|
|
136
|
+
};
|
|
137
|
+
colum1: {
|
|
138
|
+
fontSize: number;
|
|
139
|
+
lineHeight: number;
|
|
140
|
+
};
|
|
141
|
+
colum2: {
|
|
142
|
+
fontSize: number;
|
|
143
|
+
lineHeight: number;
|
|
144
|
+
margin: number[];
|
|
145
|
+
};
|
|
146
|
+
colum3: {
|
|
147
|
+
lineHeight: number;
|
|
148
|
+
};
|
|
149
|
+
Receiptheader1: {
|
|
150
|
+
fontSize: number;
|
|
151
|
+
bold: boolean;
|
|
152
|
+
alignment: string;
|
|
153
|
+
margin: number[];
|
|
154
|
+
};
|
|
155
|
+
Row1: {
|
|
156
|
+
fontSize: number;
|
|
157
|
+
margin: number[];
|
|
158
|
+
};
|
|
159
|
+
rowdata: {
|
|
160
|
+
margin: number[];
|
|
161
|
+
fontSize: number;
|
|
162
|
+
};
|
|
163
|
+
forCompany: {
|
|
164
|
+
margin: number[];
|
|
165
|
+
fontSize: string;
|
|
166
|
+
};
|
|
167
|
+
forCompany1: {
|
|
168
|
+
margin: number[];
|
|
169
|
+
fontSize: string;
|
|
170
|
+
};
|
|
171
|
+
Rupees: {
|
|
172
|
+
margin: number[];
|
|
173
|
+
fontSize: string;
|
|
174
|
+
};
|
|
175
|
+
Signature: {
|
|
176
|
+
margin: number[];
|
|
177
|
+
alignment: string;
|
|
178
|
+
fontSize: string;
|
|
179
|
+
};
|
|
180
|
+
withApp: {
|
|
181
|
+
alignment: string;
|
|
182
|
+
lineHeight: number;
|
|
183
|
+
};
|
|
184
|
+
withOutApp: {
|
|
185
|
+
alignment: string;
|
|
186
|
+
lineHeight: number;
|
|
187
|
+
};
|
|
188
|
+
Sign: {
|
|
189
|
+
fontSize: number;
|
|
190
|
+
margin: number[];
|
|
191
|
+
};
|
|
192
|
+
Sign1: {
|
|
193
|
+
fontSize: number;
|
|
194
|
+
margin: number[];
|
|
195
|
+
};
|
|
196
|
+
'margin-all': {
|
|
197
|
+
margin: number[];
|
|
198
|
+
};
|
|
199
|
+
'margin-top': {
|
|
200
|
+
margin: number[];
|
|
201
|
+
};
|
|
202
|
+
'margin-bottom': {
|
|
203
|
+
margin: number[];
|
|
204
|
+
};
|
|
205
|
+
fontSize: {
|
|
206
|
+
fontSize: number;
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
static GetFileName(ROPrintData: any): string;
|
|
211
|
+
static CommonHeaderDetails(ROPrintData: any, text: any, isotherIndustry: boolean): any[];
|
|
212
|
+
static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: any, text: any): ({
|
|
213
|
+
columns: any;
|
|
214
|
+
} | {
|
|
215
|
+
canvas: {
|
|
216
|
+
type: string;
|
|
217
|
+
lineColor: string;
|
|
218
|
+
x1: number;
|
|
219
|
+
y1: number;
|
|
220
|
+
x2: number;
|
|
221
|
+
y2: number;
|
|
222
|
+
lineWidth: number;
|
|
223
|
+
}[];
|
|
224
|
+
})[];
|
|
225
|
+
static PreparesparePartsTable(ROPrintData: any): any;
|
|
226
|
+
static GetLaborPartsTableForView(Parts: any, Ops: any, PrintPartNo: any): any;
|
|
227
|
+
static WithOutDiscountFieldTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
228
|
+
static BuildTableBodyForLaborAndParts(Parts: any, Labor: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
229
|
+
static GetWithOutDiscAndTaxFieldHeader(Parts: any, Ops: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
|
|
230
|
+
static TaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
231
|
+
style: string;
|
|
232
|
+
table: {
|
|
233
|
+
widths: (string | number)[];
|
|
234
|
+
body: any;
|
|
235
|
+
};
|
|
236
|
+
layout: {
|
|
237
|
+
hLineWidth: (i: any, node: any) => number;
|
|
238
|
+
vLineWidth: (i: any, node: any) => number;
|
|
239
|
+
hLineColor: (i: any, node: any) => string;
|
|
240
|
+
vLineColor: (i: any, node: any) => string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
static ConsolidateDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
244
|
+
style: string;
|
|
245
|
+
table: {
|
|
246
|
+
widths: number[];
|
|
247
|
+
body: any;
|
|
248
|
+
};
|
|
249
|
+
layout: {
|
|
250
|
+
hLineWidth: (i: any, node: any) => number;
|
|
251
|
+
vLineWidth: (i: any, node: any) => number;
|
|
252
|
+
hLineColor: (i: any, node: any) => string;
|
|
253
|
+
vLineColor: (i: any, node: any) => string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
static NoTaxDataTable(Parts: any, Ops: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
|
|
257
|
+
style: string;
|
|
258
|
+
table: {
|
|
259
|
+
widths: number[];
|
|
260
|
+
body: any;
|
|
261
|
+
};
|
|
262
|
+
layout: {
|
|
263
|
+
hLineWidth: (i: any, node: any) => number;
|
|
264
|
+
vLineWidth: (i: any, node: any) => number;
|
|
265
|
+
hLineColor: (i: any, node: any) => string;
|
|
266
|
+
vLineColor: (i: any, node: any) => string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
static buildTableForCustomerLabor(Parts: any, Ops: any, PrintPartNo: any, customerorInsurance: any): any;
|
|
270
|
+
static getSummaryHeaders(permission: boolean): any;
|
|
271
|
+
static CommonTotalDetails(ROPrintData: any, index: any, numberofCopies: any, moreDiscDetails: boolean): any[];
|
|
272
|
+
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SalesReceiptpdfService = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const shared_pdf_service_1 = require("../../shared/shared-services/shared-pdf.service");
|
|
5
|
+
const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
|
|
6
|
+
const tr_utils_1 = require("../../utils/tr-utils");
|
|
7
|
+
// not using this code
|
|
7
8
|
class SalesReceiptpdfService {
|
|
8
9
|
constructor() {
|
|
9
10
|
this.FontSize = 8;
|
|
10
11
|
}
|
|
11
12
|
static GetInvoicePrint(ROPrintData, numberofCopies, isotherIndustry, moreDiscDetails) {
|
|
12
13
|
var contents = [];
|
|
13
|
-
if (
|
|
14
|
+
if (tr_utils_1.TrUtils.IsNull(numberofCopies) || numberofCopies.length === 0) {
|
|
14
15
|
contents.push(this.CommonHeaderDetails(ROPrintData, null, isotherIndustry), this.PreparesparePartsTable(ROPrintData), this.CommonTotalDetails(ROPrintData, null, numberofCopies, moreDiscDetails));
|
|
15
16
|
}
|
|
16
17
|
else {
|
|
@@ -36,7 +37,7 @@ class SalesReceiptpdfService {
|
|
|
36
37
|
}
|
|
37
38
|
static GetFileName(ROPrintData) {
|
|
38
39
|
let fileName = ROPrintData.HeaderName;
|
|
39
|
-
if (!
|
|
40
|
+
if (!tr_utils_1.TrUtils.IsNull(ROPrintData.Product) && !tr_utils_1.TrUtils.IsEmpty(ROPrintData.Product.RegNo)) {
|
|
40
41
|
fileName = fileName + '-' + ROPrintData.Product.RegNo;
|
|
41
42
|
}
|
|
42
43
|
return fileName;
|
|
@@ -62,19 +63,19 @@ class SalesReceiptpdfService {
|
|
|
62
63
|
// console.log('PreparesparePartsTable', ROPrintData.Entity.Body);
|
|
63
64
|
if (ROPrintData.Entity.Body === 1) {
|
|
64
65
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
65
|
-
if (
|
|
66
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
66
67
|
ROPrintData.PrintInfo[i].Text = '';
|
|
67
68
|
}
|
|
68
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(
|
|
69
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetLaborPartsTableForView(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.Entity.MPN));
|
|
69
70
|
}
|
|
70
71
|
}
|
|
71
72
|
else {
|
|
72
73
|
if (ROPrintData.Entity.Body === 2) {
|
|
73
74
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
74
|
-
if (
|
|
75
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
75
76
|
ROPrintData.PrintInfo[i].Text = '';
|
|
76
77
|
}
|
|
77
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(
|
|
78
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.WithOutDiscountFieldTable(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
81
|
else {
|
|
@@ -83,10 +84,10 @@ class SalesReceiptpdfService {
|
|
|
83
84
|
}
|
|
84
85
|
else {
|
|
85
86
|
for (let i = 0; i < ROPrintData.PrintInfo.length; i++) {
|
|
86
|
-
if (
|
|
87
|
+
if (tr_utils_1.TrUtils.IsNull(ROPrintData.PrintInfo[i].Text)) {
|
|
87
88
|
ROPrintData.PrintInfo[i].Text = '';
|
|
88
89
|
}
|
|
89
|
-
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(
|
|
90
|
+
List.push(ROPrintData.PrintInfo[i].Text, this.GetWithOutDiscAndTaxFieldHeader(tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Items), tr_utils_1.TrUtils.Stringify(ROPrintData.PrintInfo[i].Ops), ROPrintData.ShowTaxColumn, ROPrintData.Entity.MPN, ROPrintData.Entity.Body, ROPrintData.ShowIGST, ROPrintData.ConsolidateGST, ROPrintData.ShowDiscountColumn));
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -182,14 +183,14 @@ class SalesReceiptpdfService {
|
|
|
182
183
|
Parts.forEach((part) => {
|
|
183
184
|
var dataRow = [];
|
|
184
185
|
columns.forEach((column) => {
|
|
185
|
-
if ((!
|
|
186
|
+
if ((!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field]))
|
|
186
187
|
|| (column.text === 'Line Total')) {
|
|
187
188
|
if (part[column.Field] === 'Spare Parts') {
|
|
188
189
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 10, style: 'InlineHeader' });
|
|
189
190
|
}
|
|
190
191
|
else {
|
|
191
192
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
192
|
-
&&
|
|
193
|
+
&& tr_utils_1.TrUtils.CheckInvalidSelect(part.TCode))) {
|
|
193
194
|
part[column.Field] = '';
|
|
194
195
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'center' });
|
|
195
196
|
}
|
|
@@ -199,7 +200,7 @@ class SalesReceiptpdfService {
|
|
|
199
200
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
|
|
200
201
|
if (column.Field === 'Disc') {
|
|
201
202
|
if (column.type === 'percentage') {
|
|
202
|
-
if (!
|
|
203
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part[column.Field])) {
|
|
203
204
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
204
205
|
}
|
|
205
206
|
else {
|
|
@@ -207,7 +208,7 @@ class SalesReceiptpdfService {
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
else {
|
|
210
|
-
if (!
|
|
211
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
211
212
|
dataRow.push({ text: part[column.Field].toString(), noWrap: true });
|
|
212
213
|
}
|
|
213
214
|
else {
|
|
@@ -216,7 +217,7 @@ class SalesReceiptpdfService {
|
|
|
216
217
|
}
|
|
217
218
|
}
|
|
218
219
|
else {
|
|
219
|
-
if (!
|
|
220
|
+
if (!tr_utils_1.TrUtils.IsZero(part[column.Field])) {
|
|
220
221
|
dataRow.push({ text: part[column.Field].toString(), alignment: 'right', nowrap: true });
|
|
221
222
|
}
|
|
222
223
|
else {
|
|
@@ -229,7 +230,7 @@ class SalesReceiptpdfService {
|
|
|
229
230
|
if (column.Field === 'Desc') {
|
|
230
231
|
let DescData = [];
|
|
231
232
|
DescData.push(part[column.Field].toString());
|
|
232
|
-
if (!
|
|
233
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
233
234
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
234
235
|
}
|
|
235
236
|
dataRow.push({ stack: DescData });
|
|
@@ -272,14 +273,14 @@ class SalesReceiptpdfService {
|
|
|
272
273
|
Labor.forEach((Ops) => {
|
|
273
274
|
var dataRow = [];
|
|
274
275
|
columns.forEach((column) => {
|
|
275
|
-
if ((!
|
|
276
|
+
if ((!tr_utils_1.TrUtils.IsFixedZero(Ops[column.Field]) && !tr_utils_1.TrUtils.IsNull(Ops[column.Field]))
|
|
276
277
|
|| (column.text === 'Line Total')) {
|
|
277
278
|
if (Ops[column.Field] === 'Labor') {
|
|
278
279
|
dataRow.push({ text: Ops[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
279
280
|
}
|
|
280
281
|
else {
|
|
281
282
|
if (((column.Field === 'CGSTAmt' || column.Field === 'SGSTAmt' || column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc')
|
|
282
|
-
&&
|
|
283
|
+
&& tr_utils_1.TrUtils.CheckInvalidSelect(Ops.TCode))) {
|
|
283
284
|
Ops[column.Field] = '';
|
|
284
285
|
dataRow.push({ text: Ops[column.Field].toString(), alignment: 'center' });
|
|
285
286
|
}
|
|
@@ -289,7 +290,7 @@ class SalesReceiptpdfService {
|
|
|
289
290
|
|| column.Field === 'CGSTPerc' || column.Field === 'SGSTPerc' || column.Field === 'IGSTAmt' || column.Field === 'IGSTPerc') {
|
|
290
291
|
if (column.Field === 'Disc') {
|
|
291
292
|
if (column.type === 'percentage') {
|
|
292
|
-
if (Ops.Perc && !
|
|
293
|
+
if (Ops.Perc && !tr_utils_1.TrUtils.IsZero(Ops[column.Field])) {
|
|
293
294
|
dataRow.push({ text: Ops[column.Field].toString(), noWrap: true });
|
|
294
295
|
}
|
|
295
296
|
else {
|
|
@@ -297,7 +298,7 @@ class SalesReceiptpdfService {
|
|
|
297
298
|
}
|
|
298
299
|
}
|
|
299
300
|
else {
|
|
300
|
-
if (!Ops.Perc && !
|
|
301
|
+
if (!Ops.Perc && !tr_utils_1.TrUtils.IsZero(Ops[column.Field])) {
|
|
301
302
|
dataRow.push({ text: Ops[column.Field].toString(), noWrap: true });
|
|
302
303
|
}
|
|
303
304
|
else {
|
|
@@ -306,7 +307,7 @@ class SalesReceiptpdfService {
|
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
309
|
else {
|
|
309
|
-
if (!
|
|
310
|
+
if (!tr_utils_1.TrUtils.IsZero(Ops[column.Field])) {
|
|
310
311
|
dataRow.push({ text: Ops[column.Field].toString(), alignment: 'right', nowrap: true });
|
|
311
312
|
}
|
|
312
313
|
else {
|
|
@@ -475,7 +476,7 @@ class SalesReceiptpdfService {
|
|
|
475
476
|
Parts.forEach((part) => {
|
|
476
477
|
var dataRow = [];
|
|
477
478
|
columns.forEach((column) => {
|
|
478
|
-
if (!
|
|
479
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(part[column.Field]) && !tr_utils_1.TrUtils.IsNull(part[column.Field])
|
|
479
480
|
|| column.text === 'Line Total') {
|
|
480
481
|
if (part[column.Field] === 'Spare Parts') {
|
|
481
482
|
dataRow.push({ text: part[column.Field].toString(), marginLeft: 10, style: 'InlineHeader' });
|
|
@@ -495,7 +496,7 @@ class SalesReceiptpdfService {
|
|
|
495
496
|
if (column.Field === 'Desc') {
|
|
496
497
|
let DescData = [];
|
|
497
498
|
DescData.push(part[column.Field].toString());
|
|
498
|
-
if (!
|
|
499
|
+
if (!tr_utils_1.TrUtils.IsEmpty(part['EDesc'])) {
|
|
499
500
|
DescData.push({ text: part['EDesc'].toString(), color: 'grey' });
|
|
500
501
|
}
|
|
501
502
|
dataRow.push({ stack: DescData });
|
|
@@ -535,7 +536,7 @@ class SalesReceiptpdfService {
|
|
|
535
536
|
Ops.forEach((labor) => {
|
|
536
537
|
var dataRow = [];
|
|
537
538
|
columns.forEach((column) => {
|
|
538
|
-
if (!
|
|
539
|
+
if (!tr_utils_1.TrUtils.IsFixedZero(labor[column.Field]) && !tr_utils_1.TrUtils.IsNull(labor[column.Field])
|
|
539
540
|
|| column.text === 'Line Total') {
|
|
540
541
|
if (labor[column.Field] === 'Labor') {
|
|
541
542
|
dataRow.push({ text: labor[column.Field].toString(), marginLeft: 50, style: 'InlineHeader' });
|
|
@@ -593,7 +594,7 @@ class SalesReceiptpdfService {
|
|
|
593
594
|
}
|
|
594
595
|
static CommonTotalDetails(ROPrintData, index, numberofCopies, moreDiscDetails) {
|
|
595
596
|
let CommonDetails = [
|
|
596
|
-
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn,
|
|
597
|
+
shared_pdf_service_1.SharedPDFService.GetFinalTotalDetails(ROPrintData, ROPrintData.CustLaborTotalBeforeDisc, ROPrintData.CustLaborDiscTotal, ROPrintData.CustLaborCGST, ROPrintData.CustLaborSGST, ROPrintData.CustLaborIGST, ROPrintData.CustPartIGST, ROPrintData.ShowIGST, ROPrintData.ShowTaxColumn, ROPrintData.CustPartsTotalBeforeDisc, ROPrintData.CustPartsDiscTotal, ROPrintData.CustPartCGST, ROPrintData.CustPartSGST, ROPrintData.CustTaxGroupData, ROPrintData.ShowAccParts, ROPrintData.CustLaborAfterTax, ROPrintData.CustPartAfterTax, ROPrintData.FixedDisc, ROPrintData.For, ROPrintData.FixedTotal, ROPrintData.CustTotalRoundedBy, ROPrintData.CustRoundedTotal, ROPrintData.ShowTaxColumn, ROPrintData.ShowTaxColumn, tr_utils_1.TrUtils.isTaxable(ROPrintData.Settings.Tax), ROPrintData.CustLaborITax, ROPrintData.CustPartITax, ROPrintData.Consolidate, ROPrintData.From, ROPrintData.Adj, null, moreDiscDetails),
|
|
597
598
|
shared_pdf_service_1.SharedPDFService.InvoiceDueStatus(ROPrintData.Type, ROPrintData.Paid, ROPrintData.Due, ROPrintData.Sts, false),
|
|
598
599
|
shared_pdf_service_1.SharedPDFService.GetTemsAndConditions(ROPrintData.Entity.Terms),
|
|
599
600
|
shared_pdf_service_1.SharedPDFService.GetUnderLine(),
|
|
@@ -602,7 +603,7 @@ class SalesReceiptpdfService {
|
|
|
602
603
|
if (ROPrintData.Type !== 'Invoice') {
|
|
603
604
|
CommonDetails.splice(2, 0, shared_pdf_service_1.SharedPDFService.GetUnderLine());
|
|
604
605
|
}
|
|
605
|
-
if (!
|
|
606
|
+
if (!tr_utils_1.TrUtils.IsNull(numberofCopies) && numberofCopies.length !== 0 && (index !== (numberofCopies.length - 1))) {
|
|
606
607
|
CommonDetails.push({ text: '', pageBreak: 'after' });
|
|
607
608
|
}
|
|
608
609
|
return CommonDetails;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class SaleReceiptPrintService {
|
|
2
|
+
static GetSaleReceiptPrintInfo(OriginalInvoiceData: any, OriginalEntityData: any, image: any, IncludeGST: boolean, ConsolidateGST: boolean, TaxCodes: any, IsProforma: boolean, OBN: boolean): any;
|
|
3
|
+
static GetPrintConditionsBasedOnInput(InvoicePrintData: any, IncludeGST: boolean, ConsolidateGST: boolean, ForInsurance: boolean, SType: any, OriginalInvoiceData: any, IsProforma: boolean): any;
|
|
4
|
+
static GetInvoiceTypeHeading(InvoicePrintData: any, OriginalInvoiceData: any, IncludeGST: boolean, ConsolidateGST: boolean, IsProforma: boolean): any;
|
|
5
|
+
static GetInvoiceOtherDetailsForPrint(InvoicePrintData: any, OriginalInvoiceData: any): any;
|
|
6
|
+
static GetLaborPrintInfo(LaborList: any, Consolidate: boolean, TaxCodes: any, LineTotal: string): any;
|
|
7
|
+
static GetItemsPrintInfo(Items: any, Consolidate: boolean, TaxCodes: any, OBN: boolean, LineTotal: string): any;
|
|
8
|
+
static getTaxName(TCode: any, TaxCodes: any): any;
|
|
9
|
+
static GetBatchesData(Item: any, OBN: boolean): any;
|
|
10
|
+
static GetExpiryDate(Item: any): any;
|
|
11
|
+
static ReverseItemsForInvoicePrint(argInvoiceData: any): any;
|
|
12
|
+
static PrepareFormatForInvoicePrint(InvoicePrintData: any, ROType: any, InvoiceStatus: any): any[];
|
|
13
|
+
static GetFormattedProductDataForPrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
|
|
14
|
+
static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any): any;
|
|
15
|
+
static GetCustomerDetails(OriginalInvoiceData: any): any;
|
|
16
|
+
static GetBillToName(Title: any, Name: string): string;
|
|
17
|
+
static GetPaymentsTotal(InvoicePayments: any, Total: number, InvoiceStatus: string): any;
|
|
18
|
+
}
|