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.
Files changed (263) hide show
  1. package/dist/accounting/counter-sales/auto-sales-receipt-pdf.service.d.ts +290 -0
  2. package/dist/{services → accounting/counter-sales}/auto-sales-receipt-pdf.service.js +26 -26
  3. package/dist/accounting/counter-sales/pos-receipt-pdf.d.ts +156 -0
  4. package/dist/{services → accounting/counter-sales}/pos-receipt-pdf.js +20 -20
  5. package/dist/accounting/counter-sales/sales-receipt-pdf.service.d.ts +272 -0
  6. package/dist/{services → accounting/counter-sales}/sales-receipt-pdf.service.js +28 -27
  7. package/dist/accounting/counter-sales/sales-receipt-print.service.d.ts +18 -0
  8. package/dist/{services → accounting/counter-sales}/sales-receipt-print.service.js +67 -67
  9. package/dist/accounting/credit-note/cn-print.service.d.ts +14 -0
  10. package/dist/{services → accounting/credit-note}/cn-print.service.js +37 -37
  11. package/dist/accounting/credit-note/credit-note-pdf.service.d.ts +272 -0
  12. package/dist/{services → accounting/credit-note}/credit-note-pdf.service.js +18 -18
  13. package/dist/accounting/credit-note/credit-note-totals.service.d.ts +25 -0
  14. package/dist/{services → accounting/credit-note}/credit-note-totals.service.js +32 -32
  15. package/dist/accounting/debit-note/debit-note-pdf.service.d.ts +331 -0
  16. package/dist/{services → accounting/debit-note}/debit-note-pdf.service.js +16 -16
  17. package/dist/accounting/debit-note/debit-note-print.service.d.ts +14 -0
  18. package/dist/{services → accounting/debit-note}/debit-note-print.service.js +37 -37
  19. package/dist/accounting/debit-note/debit-note-totals.service.d.ts +22 -0
  20. package/dist/{services → accounting/debit-note}/debit-note-totals.service.js +29 -29
  21. package/dist/accounting/invoice/hc-inv-pdf.service.d.ts +357 -0
  22. package/dist/{services → accounting/invoice}/hc-inv-pdf.service.js +44 -44
  23. package/dist/accounting/invoice/inv-pdf.service.d.ts +314 -0
  24. package/dist/{services → accounting/invoice}/inv-pdf.service.js +56 -56
  25. package/dist/accounting/invoice/inv-print.service.d.ts +16 -0
  26. package/dist/{services → accounting/invoice}/inv-print.service.js +63 -63
  27. package/dist/accounting/invoice/invoice-landscape-pdf.service.d.ts +416 -0
  28. package/dist/{services → accounting/invoice}/invoice-landscape-pdf.service.js +31 -31
  29. package/dist/accounting/invoice/invoice-letterhead-pdf.service.d.ts +323 -0
  30. package/dist/{services → accounting/invoice}/invoice-letterhead-pdf.service.js +56 -56
  31. package/dist/accounting/invoice/invoice-portrait-pdf.d.ts +275 -0
  32. package/dist/{services → accounting/invoice}/invoice-portrait-pdf.js +53 -53
  33. package/dist/accounting/invoice/invoice-total.service.d.ts +43 -0
  34. package/dist/{services → accounting/invoice}/invoice-total.service.js +79 -79
  35. package/dist/accounting/invoice/shared-inv-pdf.service.d.ts +303 -0
  36. package/dist/accounting/invoice/shared-inv-pdf.service.js +763 -0
  37. package/dist/accounting/payment-receive/payment-pdf.service.d.ts +618 -0
  38. package/dist/{services → accounting/payment-receive}/payment-pdf.service.js +5 -5
  39. package/dist/accounting/payment-receive/receipt-print.service.d.ts +4 -0
  40. package/dist/{services → accounting/payment-receive}/receipt-print.service.js +6 -6
  41. package/dist/accounting/payment-receive/reports/pdf/customer-balances-pdf.service.d.ts +228 -0
  42. package/dist/{services → accounting/payment-receive/reports/pdf}/customer-balances-pdf.service.js +8 -8
  43. package/dist/accounting/payment-receive/reports/pdf/payment-report-pdf.service.d.ts +228 -0
  44. package/dist/{services → accounting/payment-receive/reports/pdf}/payment-report-pdf.service.js +4 -4
  45. package/dist/aggregation/aggregation.d.ts +4 -0
  46. package/dist/aggregation/aggregation.js +13 -13
  47. package/dist/appointments/appointments/appointment-total.service.d.ts +25 -0
  48. package/dist/{services → appointments/appointments}/appointment-total.service.js +38 -38
  49. package/dist/appointments/consultations/consultation-fee-receipt.service.d.ts +318 -0
  50. package/dist/{services → appointments/consultations}/consultation-fee-receipt.service.js +17 -17
  51. package/dist/appointments/consultations/consultation-full-pdf.service.d.ts +207 -0
  52. package/dist/{services → appointments/consultations}/consultation-full-pdf.service.js +11 -11
  53. package/dist/appointments/consultations/consultation-letterhead-pdf.service.d.ts +266 -0
  54. package/dist/{services → appointments/consultations}/consultation-letterhead-pdf.service.js +16 -16
  55. package/dist/appointments/consultations/consultation-pdf.service.d.ts +306 -0
  56. package/dist/{services → appointments/consultations}/consultation-pdf.service.js +16 -16
  57. package/dist/enums/cache-enums.d.ts +33 -0
  58. package/dist/enums/code-enums.d.ts +266 -0
  59. package/dist/enums/enums.d.ts +329 -0
  60. package/dist/enums/industry-enums.d.ts +16 -0
  61. package/dist/excel-files/cust-balance-excel.service.d.ts +26 -0
  62. package/dist/excel-files/cust-balance-excel.service.js +5 -5
  63. package/dist/excel-files/expiring-drugs-excel.service.d.ts +24 -0
  64. package/dist/excel-files/expiring-drugs-excel.service.js +7 -7
  65. package/dist/excel-files/insurance-expire-excel.service.d.ts +23 -0
  66. package/dist/excel-files/insurance-expire-excel.service.js +4 -4
  67. package/dist/excel-files/invoice-wise-excel.service.d.ts +26 -0
  68. package/dist/excel-files/invoice-wise-excel.service.js +3 -3
  69. package/dist/excel-files/next-service-date-excel.service.d.ts +25 -0
  70. package/dist/excel-files/next-service-date-excel.service.js +5 -5
  71. package/dist/excel-files/payment-receive-excel.service.d.ts +25 -0
  72. package/dist/excel-files/payment-receive-excel.service.js +6 -6
  73. package/dist/excel-files/payments-made-excel.service.d.ts +25 -0
  74. package/dist/excel-files/payments-made-excel.service.js +6 -6
  75. package/dist/excel-files/repair-orders-excel.service.d.ts +24 -0
  76. package/dist/excel-files/repair-orders-excel.service.js +10 -10
  77. package/dist/excel-files/sales-by-service-details-excel.service.d.ts +0 -0
  78. package/dist/excel-files/sales-by-service-summary-excel.service.d.ts +24 -0
  79. package/dist/excel-files/sales-by-service-summary-excel.service.js +14 -14
  80. package/dist/excel-files/scheduled-drug-summary-excel.service.d.ts +24 -0
  81. package/dist/excel-files/scheduled-drug-summary-excel.service.js +8 -8
  82. package/dist/excel-files/scheduled-drugs-excel.service.d.ts +24 -0
  83. package/dist/excel-files/scheduled-drugs-excel.service.js +10 -10
  84. package/dist/excel-files/spares-issue-excel.service.d.ts +26 -0
  85. package/dist/excel-files/spares-issue-excel.service.js +14 -14
  86. package/dist/excel-files/stock-excel.service.d.ts +23 -0
  87. package/dist/excel-files/stock-excel.service.js +3 -3
  88. package/dist/excel-files/ven-balance-excel.service.d.ts +27 -0
  89. package/dist/excel-files/ven-balance-excel.service.js +3 -3
  90. package/dist/gst/excel/GSTR-RO-excel.service.d.ts +27 -0
  91. package/dist/{excel-files → gst/excel}/GSTR-RO-excel.service.js +3 -3
  92. package/dist/gst/excel/GSTR1-excel.service.d.ts +16 -0
  93. package/dist/{excel-files → gst/excel}/GSTR1-excel.service.js +7 -7
  94. package/dist/gst/excel/GSTR2-excel.service.d.ts +16 -0
  95. package/dist/{excel-files → gst/excel}/GSTR2-excel.service.js +6 -6
  96. package/dist/gst/excel/tally-sales-import.service.d.ts +27 -0
  97. package/dist/{excel-files → gst/excel}/tally-sales-import.service.js +3 -3
  98. package/dist/index.d.ts +124 -0
  99. package/dist/index.js +102 -102
  100. package/dist/inventory/items/issue-parts-pdf.service.d.ts +303 -0
  101. package/dist/{services → inventory/items}/issue-parts-pdf.service.js +45 -45
  102. package/dist/inventory/items/item-bar-code-label-pdf.d.ts +127 -0
  103. package/dist/{services → inventory/items}/item-bar-code-label-pdf.js +3 -3
  104. package/dist/inventory/items/item-detais-pdf.d.ts +121 -0
  105. package/dist/{services → inventory/items}/item-detais-pdf.js +1 -1
  106. package/dist/inventory/items/item-price-for-pricelist.d.ts +1 -0
  107. package/dist/{services → inventory/items}/item-price-for-pricelist.js +44 -50
  108. package/dist/inventory/items/reports/excel/item-wise-mout-details.d.ts +23 -0
  109. package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-details.js +4 -4
  110. package/dist/inventory/items/reports/excel/item-wise-mout-summary.d.ts +23 -0
  111. package/dist/{excel-files → inventory/items/reports/excel}/item-wise-mout-summary.js +4 -4
  112. package/dist/inventory/items/reports/pdf/expiring-drugs-pdf.service.d.ts +49 -0
  113. package/dist/{services → inventory/items/reports/pdf}/expiring-drugs-pdf.service.js +6 -6
  114. package/dist/inventory/items/reports/pdf/item-wise-mout-details-pdf.d.ts +229 -0
  115. package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-details-pdf.js +4 -4
  116. package/dist/inventory/items/reports/pdf/item-wise-mout-summary-pdf.d.ts +228 -0
  117. package/dist/{services → inventory/items/reports/pdf}/item-wise-mout-summary-pdf.js +3 -3
  118. package/dist/inventory/items/reports/pdf/reorder-point-pdf.service.d.ts +48 -0
  119. package/dist/{services → inventory/items/reports/pdf}/reorder-point-pdf.service.js +3 -3
  120. package/dist/inventory/material-out/mout-pdf.service.d.ts +324 -0
  121. package/dist/{services → inventory/material-out}/mout-pdf.service.js +19 -19
  122. package/dist/inventory/transfer-order/transfer-order-pdf.service.d.ts +48 -0
  123. package/dist/{services → inventory/transfer-order}/transfer-order-pdf.service.js +2 -2
  124. package/dist/purchases/payment-made/reports/pdf/vendor-balances-pdf.service.d.ts +227 -0
  125. package/dist/{services → purchases/payment-made/reports/pdf}/vendor-balances-pdf.service.js +7 -7
  126. package/dist/purchases/purchase-order/po-totals.service.d.ts +24 -0
  127. package/dist/{services → purchases/purchase-order}/po-totals.service.js +29 -29
  128. package/dist/purchases/purchase-order/purchase-order-pdf.service.d.ts +526 -0
  129. package/dist/{services → purchases/purchase-order}/purchase-order-pdf.service.js +42 -42
  130. package/dist/purchases/purchase-order/purchase-order-print.service.d.ts +8 -0
  131. package/dist/{services → purchases/purchase-order}/purchase-order-print.service.js +46 -46
  132. package/dist/purchases/purchase-order/purchase-order-totals.service.d.ts +23 -0
  133. package/dist/{services → purchases/purchase-order}/purchase-order-totals.service.js +55 -55
  134. package/dist/purchases/vendor-credit-note/vendor-credit-note-pdf.service.d.ts +491 -0
  135. package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-pdf.service.js +29 -29
  136. package/dist/purchases/vendor-credit-note/vendor-credit-note-print.service.d.ts +6 -0
  137. package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-print.service.js +31 -31
  138. package/dist/purchases/vendor-credit-note/vendor-credit-note-totals.service.d.ts +24 -0
  139. package/dist/{services → purchases/vendor-credit-note}/vendor-credit-note-totals.service.js +38 -38
  140. package/dist/purchases/vendor-debit-note/vendor-debit-note-pdf.service.d.ts +271 -0
  141. package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-pdf.service.js +18 -18
  142. package/dist/purchases/vendor-debit-note/vendor-debit-note-print.service.d.ts +14 -0
  143. package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-print.service.js +34 -34
  144. package/dist/purchases/vendor-debit-note/vendor-debit-note-totals.service.d.ts +22 -0
  145. package/dist/{services → purchases/vendor-debit-note}/vendor-debit-note-totals.service.js +31 -31
  146. package/dist/sales/delivery-challan/dc-landscape-pdf.service.d.ts +416 -0
  147. package/dist/{services → sales/delivery-challan}/dc-landscape-pdf.service.js +30 -30
  148. package/dist/sales/delivery-challan/dc-landscape-without-price-pdf.service.d.ts +400 -0
  149. package/dist/{services → sales/delivery-challan}/dc-landscape-without-price-pdf.service.js +26 -26
  150. package/dist/sales/delivery-challan/dc-without-price-pdf.service.d.ts +271 -0
  151. package/dist/{services → sales/delivery-challan}/dc-without-price-pdf.service.js +17 -17
  152. package/dist/sales/delivery-challan/delivery-challan-pdf.service.d.ts +269 -0
  153. package/dist/{services → sales/delivery-challan}/delivery-challan-pdf.service.js +18 -18
  154. package/dist/sales/delivery-challan/delivery-challan-print.service.d.ts +12 -0
  155. package/dist/{services → sales/delivery-challan}/delivery-challan-print.service.js +30 -30
  156. package/dist/sales/delivery-challan/delivery-challan-totals.d.ts +27 -0
  157. package/dist/{services → sales/delivery-challan}/delivery-challan-totals.js +33 -33
  158. package/dist/sales/reports/excel/analysis-excel.service.d.ts +23 -0
  159. package/dist/{excel-files → sales/reports/excel}/analysis-excel.service.js +4 -4
  160. package/dist/sales/reports/excel/category-wise-item-excel.service.d.ts +23 -0
  161. package/dist/{excel-files → sales/reports/excel}/category-wise-item-excel.service.js +10 -10
  162. package/dist/sales/reports/excel/cust-wise-sales-details.d.ts +25 -0
  163. package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-details.js +5 -5
  164. package/dist/sales/reports/excel/cust-wise-sales-summary-excel.service.d.ts +24 -0
  165. package/dist/{excel-files → sales/reports/excel}/cust-wise-sales-summary-excel.service.js +5 -5
  166. package/dist/sales/reports/excel/item-wise-doctor-sale-excel.service.d.ts +24 -0
  167. package/dist/{excel-files → sales/reports/excel}/item-wise-doctor-sale-excel.service.js +7 -7
  168. package/dist/sales/reports/excel/items-wise-sales-excel.service.d.ts +24 -0
  169. package/dist/{excel-files → sales/reports/excel}/items-wise-sales-excel.service.js +10 -10
  170. package/dist/sales/reports/excel/manf-wise-sales-excel.service.d.ts +24 -0
  171. package/dist/{excel-files → sales/reports/excel}/manf-wise-sales-excel.service.js +4 -4
  172. package/dist/sales/reports/excel/operator-wise-details.d.ts +23 -0
  173. package/dist/{excel-files → sales/reports/excel}/operator-wise-details.js +4 -4
  174. package/dist/sales/reports/excel/operator-wise-summary.d.ts +23 -0
  175. package/dist/{excel-files → sales/reports/excel}/operator-wise-summary.js +4 -4
  176. package/dist/sales/reports/excel/sa-wise-labor-sales-excel.service.d.ts +23 -0
  177. package/dist/{excel-files → sales/reports/excel}/sa-wise-labor-sales-excel.service.js +6 -6
  178. package/dist/sales/reports/excel/sa-wise-part-sales-excel.service.d.ts +23 -0
  179. package/dist/{excel-files → sales/reports/excel}/sa-wise-part-sales-excel.service.js +6 -6
  180. package/dist/sales/reports/excel/sale-summary-excel.service.d.ts +25 -0
  181. package/dist/{excel-files → sales/reports/excel}/sale-summary-excel.service.js +3 -3
  182. package/dist/sales/reports/pdf/analysis-pdf.service.d.ts +228 -0
  183. package/dist/{services → sales/reports/pdf}/analysis-pdf.service.js +9 -9
  184. package/dist/sales/reports/pdf/category-wise-item-pdf.service.d.ts +228 -0
  185. package/dist/{services → sales/reports/pdf}/category-wise-item-pdf.service.js +7 -7
  186. package/dist/sales/reports/pdf/cust-wise-sales-details-pdf.service.d.ts +228 -0
  187. package/dist/{services → sales/reports/pdf}/cust-wise-sales-details-pdf.service.js +9 -9
  188. package/dist/sales/reports/pdf/cust-wise-sales-summary-pdf.service.d.ts +228 -0
  189. package/dist/{services → sales/reports/pdf}/cust-wise-sales-summary-pdf.service.js +8 -9
  190. package/dist/sales/reports/pdf/item-wise-doctor-sale-pdf.service.d.ts +228 -0
  191. package/dist/{services → sales/reports/pdf}/item-wise-doctor-sale-pdf.service.js +4 -4
  192. package/dist/sales/reports/pdf/item-wise-sales-pdf.service.d.ts +228 -0
  193. package/dist/{services → sales/reports/pdf}/item-wise-sales-pdf.service.js +7 -8
  194. package/dist/sales/reports/pdf/manf-wise-sales-pdf.service.d.ts +228 -0
  195. package/dist/{services → sales/reports/pdf}/manf-wise-sales-pdf.service.js +6 -6
  196. package/dist/sales/reports/pdf/operator-wise-details-pdf.service.d.ts +228 -0
  197. package/dist/{services → sales/reports/pdf}/operator-wise-details-pdf.service.js +9 -9
  198. package/dist/sales/reports/pdf/operator-wise-summary-pdf.d.ts +228 -0
  199. package/dist/{services → sales/reports/pdf}/operator-wise-summary-pdf.js +8 -8
  200. package/dist/sales/reports/pdf/sales-by-service-pdf.service.d.ts +228 -0
  201. package/dist/{services → sales/reports/pdf}/sales-by-service-pdf.service.js +7 -7
  202. package/dist/sales/reports/pdf/scheduled-drug-pdf.service.d.ts +228 -0
  203. package/dist/{services → sales/reports/pdf}/scheduled-drug-pdf.service.js +8 -8
  204. package/dist/sales/reports/pdf/scheduled-drug-summary-pdf.service.d.ts +228 -0
  205. package/dist/{services → sales/reports/pdf}/scheduled-drug-summary-pdf.service.js +5 -5
  206. package/dist/sales/sales/equipment-design-pdf.service.d.ts +121 -0
  207. package/dist/{services → sales/sales}/equipment-design-pdf.service.js +12 -12
  208. package/dist/sales/sales/pack-ship-pdf.service.d.ts +262 -0
  209. package/dist/{services → sales/sales}/pack-ship-pdf.service.js +5 -5
  210. package/dist/sales/sales/pack-ship-print.service.d.ts +11 -0
  211. package/dist/{services → sales/sales}/pack-ship-print.service.js +27 -27
  212. package/dist/sales/sales/sales-pdf.service.d.ts +275 -0
  213. package/dist/{services → sales/sales}/sales-pdf.service.js +25 -25
  214. package/dist/sales/sales/sales-print.service.d.ts +15 -0
  215. package/dist/{services → sales/sales}/sales-print.service.js +58 -58
  216. package/dist/sales/sales/sales-totals.service.d.ts +27 -0
  217. package/dist/{services → sales/sales}/sales-totals.service.js +34 -34
  218. package/dist/services/checklist-pdf.d.ts +57 -0
  219. package/dist/services/checklist-pdf.js +5 -5
  220. package/dist/services/checklists-pdf.d.ts +12 -0
  221. package/dist/services/checklists-pdf.js +1 -1
  222. package/dist/services/est.print-service.d.ts +64 -0
  223. package/dist/services/est.print-service.js +151 -151
  224. package/dist/services/next-service-date-pdf.service.d.ts +228 -0
  225. package/dist/services/next-service-date-pdf.service.js +2 -2
  226. package/dist/services/reports/insurance-expire-pdf.service.d.ts +227 -0
  227. package/dist/services/{insurance-expire-pdf.service.js → reports/insurance-expire-pdf.service.js} +2 -2
  228. package/dist/services/reports/repair-orders-pdf.service.d.ts +229 -0
  229. package/dist/services/{repair-orders-pdf.service.js → reports/repair-orders-pdf.service.js} +4 -4
  230. package/dist/services/ro-pdf.service.d.ts +1060 -0
  231. package/dist/services/ro-pdf.service.js +82 -82
  232. package/dist/services/ro-print-service.d.ts +45 -0
  233. package/dist/services/ro-print-service.js +88 -88
  234. package/dist/services/ro-totals.service.d.ts +65 -0
  235. package/dist/services/ro-totals.service.js +123 -123
  236. package/dist/services/separate-wo-print.service.d.ts +494 -0
  237. package/dist/services/separate-wo-print.service.js +10 -10
  238. package/dist/services/shared-inv-pdf.service.d.ts +303 -0
  239. package/dist/services/shared-inv-pdf.service.js +46 -46
  240. package/dist/services/technician-pdf.service.d.ts +221 -0
  241. package/dist/services/technician-pdf.service.js +11 -11
  242. package/dist/services/technician-print.service.d.ts +5 -0
  243. package/dist/services/technician-print.service.js +10 -10
  244. package/dist/shared/math-operations.d.ts +53 -0
  245. package/dist/shared/math-operations.js +184 -0
  246. package/dist/shared/shared-services/shared-pdf.service.d.ts +926 -0
  247. package/dist/{services → shared/shared-services}/shared-pdf.service.js +120 -120
  248. package/dist/shared/shared-services/shared-print.service.d.ts +49 -0
  249. package/dist/{services → shared/shared-services}/shared-print.service.js +68 -68
  250. package/dist/shared/util.d.ts +3 -0
  251. package/dist/shared/util.js +15 -0
  252. package/dist/tasks/meetings/meeting-pdf.d.ts +107 -0
  253. package/dist/{services → tasks/meetings}/meeting-pdf.js +15 -15
  254. package/dist/tasks/tasks/task-pdf.service.d.ts +127 -0
  255. package/dist/{services → tasks/tasks}/task-pdf.service.js +12 -12
  256. package/dist/tasks/tasks/task-reports-pdf.service.d.ts +94 -0
  257. package/dist/{services → tasks/tasks}/task-reports-pdf.service.js +11 -11
  258. package/dist/utils/my-date.d.ts +104 -0
  259. package/dist/{shared → utils}/my-date.js +31 -31
  260. package/dist/utils/tr-utils.d.ts +41 -0
  261. package/dist/{shared/utils.js → utils/tr-utils.js} +0 -8
  262. package/package.json +2 -1
  263. package/tsconfig.json +1 -0
@@ -0,0 +1,6 @@
1
+ export declare class VendorCreditNotePrintService {
2
+ static GetDataForVendorCreditNotesPrint(argCNData: any, EntityData: any, image: any, IncludeGST: any, ConsolidateGST: any, TaxCodes: any): any;
3
+ static GetVendorDataForPrint(argVendorData: any): any;
4
+ static ConcatTotalsInfo(creditNotePDFData: any, DetailedTotalsInfo: any): any;
5
+ static FixPriceValuesForPrint(PrintData: any, TaxCodes: any): any;
6
+ }
@@ -1,17 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VendorCreditNotePrintService = void 0;
4
- const code_enums_1 = require("../enums/code-enums");
5
- const my_date_1 = require("../shared/my-date");
6
- const utils_1 = require("../shared/utils");
7
- const shared_print_service_1 = require("./shared-print.service");
4
+ const code_enums_1 = require("../../enums/code-enums");
5
+ const shared_print_service_1 = require("../../shared/shared-services/shared-print.service");
6
+ const my_date_1 = require("../../utils/my-date");
7
+ const tr_utils_1 = require("../../utils/tr-utils");
8
8
  const vendor_credit_note_totals_service_1 = require("./vendor-credit-note-totals.service");
9
9
  class VendorCreditNotePrintService {
10
10
  //Prepare Pdf Data For Purchase Order And Bill
11
11
  static GetDataForVendorCreditNotesPrint(argCNData, EntityData, image, IncludeGST, ConsolidateGST, TaxCodes) {
12
- let CNData = utils_1.TrUtils.Stringify(argCNData);
12
+ let CNData = tr_utils_1.TrUtils.Stringify(argCNData);
13
13
  let creditNotePDFData = {};
14
- creditNotePDFData.Settings = utils_1.TrUtils.Stringify(argCNData.Settings);
14
+ creditNotePDFData.Settings = tr_utils_1.TrUtils.Stringify(argCNData.Settings);
15
15
  // let IsTaxable: boolean = (CNData.Tax === 3) ? true : false;
16
16
  let IsTaxable = true;
17
17
  // PurchaseOrderPDFData.ShowTaxColumn = (CNData.Tax === 3) ? true : false;
@@ -24,14 +24,14 @@ class VendorCreditNotePrintService {
24
24
  // PurchaseOrderPDFData.HasNoTax = (CNData.Tax === 1) ? true : false;
25
25
  creditNotePDFData.HasNoTax = false;
26
26
  let SType;
27
- if (!utils_1.TrUtils.IsNull(argCNData.SType)) {
27
+ if (!tr_utils_1.TrUtils.IsNull(argCNData.SType)) {
28
28
  SType = argCNData.SType;
29
29
  }
30
- creditNotePDFData.ShowIGST = (utils_1.TrUtils.IsNull(CNData.SType) || (CNData.SType === 'Intra')) ? false : true;
30
+ creditNotePDFData.ShowIGST = (tr_utils_1.TrUtils.IsNull(CNData.SType) || (CNData.SType === 'Intra')) ? false : true;
31
31
  creditNotePDFData.Id = CNData.BNo;
32
32
  creditNotePDFData.CrDate = my_date_1.MyDate.ConvertUTCDateToReadable(CNData.CrDate);
33
33
  creditNotePDFData.DeDate = my_date_1.MyDate.ConvertUTCDateToReadable(CNData.DeDate);
34
- creditNotePDFData.Items = utils_1.TrUtils.Stringify(CNData.Items);
34
+ creditNotePDFData.Items = tr_utils_1.TrUtils.Stringify(CNData.Items);
35
35
  // creditNotePDFData.Items = this.GetPartsDescription(creditNotePDFData.Items);
36
36
  let DetailedTotalsInfo;
37
37
  DetailedTotalsInfo = vendor_credit_note_totals_service_1.VendorCreditNoteTotalsService.GetTotalsValue([], creditNotePDFData.Items, IsTaxable, true, creditNotePDFData.Disc, creditNotePDFData.Perc, TaxCodes, true, creditNotePDFData.Settings);
@@ -39,13 +39,13 @@ class VendorCreditNotePrintService {
39
39
  creditNotePDFData.Entity = shared_print_service_1.PrintSharedService.GetFormattedEntityDataForPrint(EntityData, code_enums_1.PrintTypesEnum.PurOrder, CNData);
40
40
  creditNotePDFData = shared_print_service_1.PrintSharedService.GetEntityHeaderStyles(creditNotePDFData, EntityData, image);
41
41
  creditNotePDFData.HeaderName = 'Vendor Credit Note';
42
- creditNotePDFData.Vendor = this.GetVendorDataForPrint(utils_1.TrUtils.Stringify(CNData.BFrom));
42
+ creditNotePDFData.Vendor = this.GetVendorDataForPrint(tr_utils_1.TrUtils.Stringify(CNData.BFrom));
43
43
  creditNotePDFData = this.FixPriceValuesForPrint(creditNotePDFData, TaxCodes);
44
44
  return creditNotePDFData;
45
45
  }
46
46
  static GetVendorDataForPrint(argVendorData) {
47
47
  let VendorPDFData = {};
48
- let VendorData = utils_1.TrUtils.Stringify(argVendorData);
48
+ let VendorData = tr_utils_1.TrUtils.Stringify(argVendorData);
49
49
  // VendorPDFData.VendorType = VendorData.Type;
50
50
  // if (VendorData.Type === CustomerTypesEnum.Individual) {
51
51
  VendorPDFData.Name = VendorData.Name;
@@ -59,9 +59,9 @@ class VendorCreditNotePrintService {
59
59
  // ]
60
60
  // }
61
61
  VendorPDFData.Address = [];
62
- if (!utils_1.TrUtils.IsNull(VendorData.Adrs)) {
62
+ if (!tr_utils_1.TrUtils.IsNull(VendorData.Adrs)) {
63
63
  VendorPDFData.Address.push(VendorData.Adrs.A1);
64
- if (!utils_1.TrUtils.IsEmpty(VendorData.Adrs.A2)) {
64
+ if (!tr_utils_1.TrUtils.IsEmpty(VendorData.Adrs.A2)) {
65
65
  VendorPDFData.Address.push(VendorData.Adrs.A2);
66
66
  }
67
67
  VendorPDFData.Address.push(VendorData.Adrs.Ct);
@@ -69,35 +69,35 @@ class VendorCreditNotePrintService {
69
69
  return VendorPDFData;
70
70
  }
71
71
  static ConcatTotalsInfo(creditNotePDFData, DetailedTotalsInfo) {
72
- creditNotePDFData = utils_1.TrUtils.ConcatObjects(creditNotePDFData, DetailedTotalsInfo);
72
+ creditNotePDFData = tr_utils_1.TrUtils.ConcatObjects(creditNotePDFData, DetailedTotalsInfo);
73
73
  return creditNotePDFData;
74
74
  }
75
75
  static FixPriceValuesForPrint(PrintData, TaxCodes) {
76
76
  PrintData.ShowDetailedPartTaxInfo = false;
77
77
  PrintData.Items.forEach((Part) => {
78
- Part.UnPr = utils_1.TrUtils.FixPriceValue(Part.Pr);
79
- Part.DiscountedPrice = utils_1.TrUtils.FixPriceValue(Part.DiscountedPrice);
80
- Part.AfterTax = utils_1.TrUtils.FixPriceValue(Part.AfterTax);
81
- Part.CGSTAmt = utils_1.TrUtils.FixPriceValue(Part.CGST);
82
- Part.IGSTAmt = utils_1.TrUtils.FixPriceValue(Part.IGST);
83
- Part.SGSTAmt = utils_1.TrUtils.FixPriceValue(Part.SGST);
84
- if (!utils_1.TrUtils.CheckInvalidSelect(Part.TCode)) {
78
+ Part.UnPr = tr_utils_1.TrUtils.FixPriceValue(Part.Pr);
79
+ Part.DiscountedPrice = tr_utils_1.TrUtils.FixPriceValue(Part.DiscountedPrice);
80
+ Part.AfterTax = tr_utils_1.TrUtils.FixPriceValue(Part.AfterTax);
81
+ Part.CGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.CGST);
82
+ Part.IGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.IGST);
83
+ Part.SGSTAmt = tr_utils_1.TrUtils.FixPriceValue(Part.SGST);
84
+ if (!tr_utils_1.TrUtils.CheckInvalidSelect(Part.TCode)) {
85
85
  PrintData.ShowDetailedPartTaxInfo = true;
86
86
  }
87
87
  Part.CGSTPerc = shared_print_service_1.PrintSharedService.GetCGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
88
88
  Part.SGSTPerc = shared_print_service_1.PrintSharedService.GetSGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
89
89
  Part.IGSTPerc = shared_print_service_1.PrintSharedService.GetIGSTValueBasedOnTaxCode(Part.TCode, TaxCodes);
90
90
  });
91
- PrintData.PartsDiscTotal = utils_1.TrUtils.FixPriceValue(PrintData.CustItemsDiscTotal);
92
- PrintData.PartsTotalAfterDisc = utils_1.TrUtils.FixPriceValue(PrintData.CustItemsTotalAfterDisc);
93
- PrintData.PartsTotalBeforeDisc = utils_1.TrUtils.FixPriceValue(PrintData.CustItemsTotalBeforeDisc);
94
- PrintData.TaxTotal = utils_1.TrUtils.FixPriceValue(PrintData.TaxTotal);
95
- PrintData.PartCGST = utils_1.TrUtils.FixPriceValue(PrintData.CustItemCGST);
96
- PrintData.PartIGST = utils_1.TrUtils.FixPriceValue(PrintData.CustItemIGST);
97
- PrintData.PartSGST = utils_1.TrUtils.FixPriceValue(PrintData.CustItemSGST);
98
- PrintData.PartAfterTax = utils_1.TrUtils.FixPriceValue(PrintData.CustItemAfterTax);
99
- PrintData.TotalRoundedBy = utils_1.TrUtils.FixPriceValue(PrintData.CustTotalRoundedBy);
100
- PrintData.RoundedTotal = utils_1.TrUtils.FixPriceValue(PrintData.CustRoundedTotal);
91
+ PrintData.PartsDiscTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemsDiscTotal);
92
+ PrintData.PartsTotalAfterDisc = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemsTotalAfterDisc);
93
+ PrintData.PartsTotalBeforeDisc = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemsTotalBeforeDisc);
94
+ PrintData.TaxTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.TaxTotal);
95
+ PrintData.PartCGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemCGST);
96
+ PrintData.PartIGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemIGST);
97
+ PrintData.PartSGST = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemSGST);
98
+ PrintData.PartAfterTax = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustItemAfterTax);
99
+ PrintData.TotalRoundedBy = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustTotalRoundedBy);
100
+ PrintData.RoundedTotal = tr_utils_1.TrUtils.FixPriceValue(PrintData.CustRoundedTotal);
101
101
  return PrintData;
102
102
  }
103
103
  }
@@ -0,0 +1,24 @@
1
+ export declare class VendorCreditNoteTotalsService {
2
+ static GetTotalsValue(opCodesList: any, ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean, Disc: any, Perc: string, TaxCodes: any, WithItems: boolean, Settings: any): any;
3
+ static CalculateLaborItemValues(ItemsList: any, IsIndependentTax: boolean): any;
4
+ static ResetLaborItemValues(ItemsList: any, IsIndependentTax: boolean): any;
5
+ static ResetLaborItemValueIfInvalid(Item: any): any;
6
+ static GetFinalCNDataForSave(LaborList: any, ItemsList: any, IsIndependentTax: boolean, Disc: any, Perc: string, DetailedInfo: boolean, Settings: any): any;
7
+ static SetMainDiscountValues(Disc: string, Perc: string, finalTotalsData: any, DetailedInfo: boolean): any;
8
+ static GetFinalCustomerTotalsData(finalTotalsData: any, LaborList: any, ItemsList: any, IsIndependentTax: boolean, DetailedInfo: boolean): any;
9
+ static GetSubTotalFor(LaborList: any, ItemsList: any): any;
10
+ static GetItemsTotalAfterDiscount(ItemsList: any): any;
11
+ static GetDetailedTotalsData(finalTotalsData: any, IsIndependentTax: boolean, opCodesList: any, ItemsList: any, TaxCodes: any): any;
12
+ static GetItemDiscountedTotal(ItemsList: any, isTaxable: boolean, finalTotalsData: any): number;
13
+ static GetLaborTaxTotalFor(opCodesList: any, IsIndependentTax: boolean): any;
14
+ static GetItemsTaxTotalFor(ItemsList: any, IsIndependentTax: boolean): any;
15
+ static GetCustomerTotalBasedOnTaxType(finalTotalsData: any, LaborTaxAmount: number, ItemsTaxAmount: number, LaborList: any, ItemsList: any, IsIndependentTax: boolean): any;
16
+ static LaborTotalAfterDiscount(LaborTotalAfterDisc: number, LaborTaxAmount: number, MainLDisc: number, LDiscInPerc: string): number;
17
+ static ItemsTotalAfterDiscount(ItemsTotalAfterDisc: number, ItemsTaxAmount: number, MainPDisc: number, PDiscInPerc: string): number;
18
+ static GetItemGSTTaxTotal(ItemsList: any, IsIndependentTax: boolean): number[];
19
+ static GetTaxGroupingForItemsByHSN(Items: any, TaxCodes: any): any[];
20
+ static GetCombinedTaxPercentage(Items: any, TaxCodes: any): any;
21
+ static CompareItemsByHSN(Items: any, TaxCodes: any): any[];
22
+ static GetTaxGroupingInfoByHSN(FinalMatchedItems: any, TaxCodes: any): any[];
23
+ static GetGSTValueBasedOnTaxCode(TCode: any, TaxCodes: any): any[];
24
+ }
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VendorCreditNoteTotalsService = void 0;
4
- const aggregation_1 = require("../aggregation/aggregation");
5
- const utils_1 = require("../shared/utils");
4
+ const aggregation_1 = require("../../aggregation/aggregation");
5
+ const tr_utils_1 = require("../../utils/tr-utils");
6
6
  class VendorCreditNoteTotalsService {
7
7
  static GetTotalsValue(opCodesList, ItemsList, IsIndependentTax, DetailedInfo, Disc, Perc, TaxCodes, WithItems, Settings) {
8
8
  // LPerc = TrUtils.SetPercToStringIfNull(LPerc);
9
9
  // PPerc = TrUtils.SetPercToStringIfNull(PPerc);
10
- Perc = utils_1.TrUtils.SetPercToStringIfNull(Perc);
10
+ Perc = tr_utils_1.TrUtils.SetPercToStringIfNull(Perc);
11
11
  // LDisc = TrUtils.SetValueToZeroIfNull(LDisc);
12
12
  // PDisc = TrUtils.SetValueToZeroIfNull(PDisc);
13
- Disc = utils_1.TrUtils.SetValueToZeroIfNull(Disc);
13
+ Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Disc);
14
14
  // opCodesList = this.CalculateLaborValues(opCodesList, IsIndependentTax);
15
15
  ItemsList = this.CalculateLaborItemValues(ItemsList, IsIndependentTax);
16
16
  let finalTotalsData = this.GetFinalCNDataForSave(opCodesList, ItemsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings);
@@ -45,12 +45,12 @@ class VendorCreditNoteTotalsService {
45
45
  return ItemsList;
46
46
  }
47
47
  static ResetLaborItemValueIfInvalid(Item) {
48
- Item.UnCo = utils_1.TrUtils.SetValueToZeroIfNull(Item.UnCo);
49
- Item.Disc = utils_1.TrUtils.SetValueToZeroIfNull(Item.Disc);
50
- Item.RecDisc = utils_1.TrUtils.SetValueToZeroIfNull(Item.RecDisc);
51
- Item.CGST = utils_1.TrUtils.SetValueToZeroIfNull(Item.CGST);
52
- Item.SGST = utils_1.TrUtils.SetValueToZeroIfNull(Item.SGST);
53
- Item.IGST = utils_1.TrUtils.SetValueToZeroIfNull(Item.IGST);
48
+ Item.UnCo = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.UnCo);
49
+ Item.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.Disc);
50
+ Item.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.RecDisc);
51
+ Item.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.CGST);
52
+ Item.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.SGST);
53
+ Item.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(Item.IGST);
54
54
  return Item;
55
55
  }
56
56
  static GetFinalCNDataForSave(LaborList, ItemsList, IsIndependentTax, Disc, Perc, DetailedInfo, Settings) {
@@ -78,18 +78,18 @@ class VendorCreditNoteTotalsService {
78
78
  let CustomerAfterDiscTotals = this.GetSubTotalFor([], ItemsList);
79
79
  let CustLaborTaxTotal = this.GetLaborTaxTotalFor([], IsIndependentTax);
80
80
  let CustItemTaxTotal = this.GetItemsTaxTotalFor(ItemsList, IsIndependentTax);
81
- finalTotalsData.SubTotal = utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
81
+ finalTotalsData.SubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
82
82
  // let CustLaborDiscTotal = this.GetLaborDiscountedTotal(LaborList, IsIndependentTax, finalTotalsData);
83
83
  let CustItemsDiscTotal = this.GetItemDiscountedTotal(ItemsList, IsIndependentTax, finalTotalsData);
84
84
  // let CustLaborTotalAfterDisc = this.GetLaborTotalAfterDiscount(LaborList);
85
85
  let CustItemsTotalAfterDisc = this.GetItemsTotalAfterDiscount(ItemsList);
86
- finalTotalsData.STotal = utils_1.TrUtils.FixedTo(CustItemsDiscTotal + CustItemsTotalAfterDisc);
86
+ finalTotalsData.STotal = tr_utils_1.TrUtils.FixedTo(CustItemsDiscTotal + CustItemsTotalAfterDisc);
87
87
  let CustTotal = this.GetCustomerTotalBasedOnTaxType(finalTotalsData, CustLaborTaxTotal, CustItemTaxTotal, [], ItemsList, IsIndependentTax);
88
- finalTotalsData.Round = utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
88
+ finalTotalsData.Round = tr_utils_1.TrUtils.FixedTo(Math.round(CustTotal) - CustTotal);
89
89
  finalTotalsData.Total = Math.round(CustTotal);
90
90
  if (DetailedInfo) {
91
- finalTotalsData.FixedSubTotal = utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
92
- finalTotalsData.FixedTotal = utils_1.TrUtils.FixedTo(CustTotal);
91
+ finalTotalsData.FixedSubTotal = tr_utils_1.TrUtils.FixedTo(CustomerAfterDiscTotals);
92
+ finalTotalsData.FixedTotal = tr_utils_1.TrUtils.FixedTo(CustTotal);
93
93
  }
94
94
  return finalTotalsData;
95
95
  }
@@ -112,32 +112,32 @@ class VendorCreditNoteTotalsService {
112
112
  finalTotalsData.CustItemsTotalAfterDisc = this.GetItemsTotalAfterDiscount(ItemsList);
113
113
  // finalTotalsData.CustLaborTotalBeforeDisc = TrUtils.FixedTo(finalTotalsData.CustLaborTotalAfterDisc
114
114
  // + finalTotalsData.CustLaborDiscTotal);
115
- finalTotalsData.CustItemsTotalBeforeDisc = utils_1.TrUtils.FixedTo(finalTotalsData.CustItemsTotalAfterDisc
115
+ finalTotalsData.CustItemsTotalBeforeDisc = tr_utils_1.TrUtils.FixedTo(finalTotalsData.CustItemsTotalAfterDisc
116
116
  + finalTotalsData.CustItemsDiscTotal);
117
117
  // finalTotalsData.CustLaborITax = this.GetLaborTaxTotalFor(opCodesList, IsIndependentTax);
118
118
  // finalTotalsData.CustLaborSGST = this.GetLaborSGSTTaxTotal(opCodesList, IsIndependentTax);
119
119
  // finalTotalsData.CustLaborCGST = this.GetLaborCGSTTaxTotal(opCodesList, IsIndependentTax);
120
120
  // finalTotalsData.CustLaborIGST = this.GetLaborIGSTTaxTotal(opCodesList, IsIndependentTax);
121
121
  let TaxInfo = this.GetItemGSTTaxTotal(ItemsList, IsIndependentTax);
122
- finalTotalsData.CustItemITax = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[3]);
123
- finalTotalsData.CustItemCGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
124
- finalTotalsData.CustItemIGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
125
- finalTotalsData.CustItemSGST = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
122
+ finalTotalsData.CustItemITax = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[3]);
123
+ finalTotalsData.CustItemCGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
124
+ finalTotalsData.CustItemIGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
125
+ finalTotalsData.CustItemSGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
126
126
  // finalTotalsData.CustItemITax = this.GetItemsTaxTotalFor(ItemsList, IsIndependentTax);
127
127
  // finalTotalsData.CustItemCGST = this.GetItemCGSTTaxTotal(ItemsList, IsIndependentTax);
128
128
  // finalTotalsData.CustItemIGST = this.GetItemIGSTTaxTotal(ItemsList, IsIndependentTax);
129
129
  // finalTotalsData.CustItemSGST = this.GetItemSGSTTaxTotal(ItemsList, IsIndependentTax);
130
130
  // finalTotalsData.CustLaborAfterTax = TrUtils.FixedTo(finalTotalsData.CustLaborITax + finalTotalsData.CustLaborTotalAfterDisc);
131
- finalTotalsData.CustItemAfterTax = utils_1.TrUtils.FixedTo(finalTotalsData.CustItemITax + finalTotalsData.CustItemsTotalAfterDisc);
131
+ finalTotalsData.CustItemAfterTax = tr_utils_1.TrUtils.FixedTo(finalTotalsData.CustItemITax + finalTotalsData.CustItemsTotalAfterDisc);
132
132
  finalTotalsData.CustTaxGroupData = this.GetTaxGroupingForItemsByHSN(ItemsList, TaxCodes);
133
- finalTotalsData.CustTotalRoundedBy = utils_1.TrUtils.FixedTo(finalTotalsData.Round);
134
- finalTotalsData.CustRoundedTotal = utils_1.TrUtils.FixedTo(finalTotalsData.Total);
133
+ finalTotalsData.CustTotalRoundedBy = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Round);
134
+ finalTotalsData.CustRoundedTotal = tr_utils_1.TrUtils.FixedTo(finalTotalsData.Total);
135
135
  for (var key in finalTotalsData) {
136
136
  if (key !== 'Total' && key !== 'SubTotal' &&
137
137
  key !== 'LDisc' && key !== 'LPerc' && key !== 'PDisc' &&
138
138
  key !== 'PPerc' && key !== 'Disc' && key !== 'Perc' && key !== 'Tax'
139
139
  && typeof finalTotalsData[key] === 'number') {
140
- finalTotalsData[key] = utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
140
+ finalTotalsData[key] = tr_utils_1.TrUtils.FixPriceValue(finalTotalsData[key]);
141
141
  }
142
142
  }
143
143
  return finalTotalsData;
@@ -146,12 +146,12 @@ class VendorCreditNoteTotalsService {
146
146
  let ItemsDiscountedTotal = 0;
147
147
  let overallItemDisc = 0;
148
148
  if (!isTaxable) {
149
- overallItemDisc = utils_1.TrUtils.SetValueToZeroIfNull(finalTotalsData.PDisc);
149
+ overallItemDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(finalTotalsData.PDisc);
150
150
  }
151
151
  ItemsList.forEach((Item) => {
152
152
  ItemsDiscountedTotal += Item.DiscountedPrice;
153
153
  });
154
- return utils_1.TrUtils.FixedTo(ItemsDiscountedTotal + overallItemDisc);
154
+ return tr_utils_1.TrUtils.FixedTo(ItemsDiscountedTotal + overallItemDisc);
155
155
  }
156
156
  static GetLaborTaxTotalFor(opCodesList, IsIndependentTax) {
157
157
  let TotalTaxAmt = 0;
@@ -178,13 +178,13 @@ class VendorCreditNoteTotalsService {
178
178
  return ItemsTotalAfterDisc + LaborTaxAmount + ItemsTaxAmount;
179
179
  }
180
180
  else {
181
- return utils_1.TrUtils.FixedTo(ItemsTotalAfterDisc - finalTotalsData.Disc);
181
+ return tr_utils_1.TrUtils.FixedTo(ItemsTotalAfterDisc - finalTotalsData.Disc);
182
182
  }
183
183
  }
184
184
  static LaborTotalAfterDiscount(LaborTotalAfterDisc, LaborTaxAmount, MainLDisc, LDiscInPerc) {
185
185
  let LaborTotal = LaborTotalAfterDisc + LaborTaxAmount;
186
- if (!utils_1.TrUtils.IsZero(MainLDisc)) {
187
- if (!utils_1.TrUtils.IsEmpty(LDiscInPerc)) {
186
+ if (!tr_utils_1.TrUtils.IsZero(MainLDisc)) {
187
+ if (!tr_utils_1.TrUtils.IsEmpty(LDiscInPerc)) {
188
188
  LaborTotal = (LaborTotal - (LaborTotal * Number(LDiscInPerc)) / 100);
189
189
  }
190
190
  else {
@@ -195,8 +195,8 @@ class VendorCreditNoteTotalsService {
195
195
  }
196
196
  static ItemsTotalAfterDiscount(ItemsTotalAfterDisc, ItemsTaxAmount, MainPDisc, PDiscInPerc) {
197
197
  let ItemsTotal = ItemsTotalAfterDisc + ItemsTaxAmount;
198
- if (!utils_1.TrUtils.IsZero(MainPDisc)) {
199
- if (!utils_1.TrUtils.IsEmpty(PDiscInPerc)) {
198
+ if (!tr_utils_1.TrUtils.IsZero(MainPDisc)) {
199
+ if (!tr_utils_1.TrUtils.IsEmpty(PDiscInPerc)) {
200
200
  ItemsTotal = (ItemsTotal - (ItemsTotal * Number(PDiscInPerc)) / 100);
201
201
  }
202
202
  else {
@@ -228,13 +228,13 @@ class VendorCreditNoteTotalsService {
228
228
  }
229
229
  static GetCombinedTaxPercentage(Items, TaxCodes) {
230
230
  Items.forEach((Item) => {
231
- if (utils_1.TrUtils.IsNull(Item.HSN)) {
231
+ if (tr_utils_1.TrUtils.IsNull(Item.HSN)) {
232
232
  Item.HSN = '';
233
233
  }
234
234
  let TaxInfo = this.GetGSTValueBasedOnTaxCode(Item.TCode, TaxCodes);
235
- Item.CGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
236
- Item.SGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
237
- Item.IGSTAmt = utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
235
+ Item.CGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[0]);
236
+ Item.SGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[1]);
237
+ Item.IGSTAmt = tr_utils_1.TrUtils.SetValueToZeroIfNull(TaxInfo[2]);
238
238
  Item.CombinedTaxPercentage = (0, aggregation_1.addition)(Item.CGSTAmt, Item.SGSTAmt, Item.IGSTAmt);
239
239
  });
240
240
  return Items;
@@ -285,8 +285,8 @@ class VendorCreditNoteTotalsService {
285
285
  TaxAmount = (0, aggregation_1.addition)(TaxAmount, argMatchedGSTItem.SGST);
286
286
  });
287
287
  TaxInfo.HSN = HSN;
288
- TaxInfo.TotalTaxableAmount = utils_1.TrUtils.FixPriceValue(TaxOnAmount);
289
- TaxInfo.TotalTaxAmount = utils_1.TrUtils.FixPriceValue(TaxAmount);
288
+ TaxInfo.TotalTaxableAmount = tr_utils_1.TrUtils.FixPriceValue(TaxOnAmount);
289
+ TaxInfo.TotalTaxAmount = tr_utils_1.TrUtils.FixPriceValue(TaxAmount);
290
290
  TaxInfo.ItemsCount = MatchedItem.length;
291
291
  // let GSTValues: any[] = this.GetGSTValueBasedOnTaxCode(MatchedItem[0].TCode, TaxCodes);
292
292
  // TaxInfo.CGST = GSTValues[0];
@@ -305,7 +305,7 @@ class VendorCreditNoteTotalsService {
305
305
  let CGST = 0;
306
306
  let SGST = 0;
307
307
  let IGST = 0;
308
- if (utils_1.TrUtils.IsNull(TCode)) {
308
+ if (tr_utils_1.TrUtils.IsNull(TCode)) {
309
309
  return [CGST, SGST, IGST];
310
310
  }
311
311
  let TCodeIndex = TaxCodes.findIndex((TaxCode) => {
@@ -0,0 +1,271 @@
1
+ export declare class VendorDebitNotePdfService {
2
+ FontSize: number;
3
+ static GetInvoicePrint(ROPrintData: any, win: any, 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): any[];
212
+ static GetMainHeaderDetails(Entity: any, HeaderName: any, Image: any, HColor: any, AColor: 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 WithOutDiscountFieldTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
227
+ static BuildTableBodyForLaborAndParts(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
228
+ static GetWithOutDiscAndTaxFieldHeader(Parts: any, ShowTaxColumn: any, PrintPartNo: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): any;
229
+ static TaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
230
+ style: string;
231
+ table: {
232
+ widths: (string | number)[];
233
+ body: any;
234
+ };
235
+ layout: {
236
+ hLineWidth: (i: any, node: any) => number;
237
+ vLineWidth: (i: any, node: any) => number;
238
+ hLineColor: (i: any, node: any) => string;
239
+ vLineColor: (i: any, node: any) => string;
240
+ };
241
+ };
242
+ static ConsolidateDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
243
+ style: string;
244
+ table: {
245
+ widths: number[];
246
+ body: any;
247
+ };
248
+ layout: {
249
+ hLineWidth: (i: any, node: any) => number;
250
+ vLineWidth: (i: any, node: any) => number;
251
+ hLineColor: (i: any, node: any) => string;
252
+ vLineColor: (i: any, node: any) => string;
253
+ };
254
+ };
255
+ static NoTaxDataTable(Parts: any, PrintPartNo: any, ShowTaxColumn: any, Body: any, ShowIGST: any, ConsolidateGST: any, ShowDiscountColumn: any): {
256
+ style: string;
257
+ table: {
258
+ widths: number[];
259
+ body: any;
260
+ };
261
+ layout: {
262
+ hLineWidth: (i: any, node: any) => number;
263
+ vLineWidth: (i: any, node: any) => number;
264
+ hLineColor: (i: any, node: any) => string;
265
+ vLineColor: (i: any, node: any) => string;
266
+ };
267
+ };
268
+ static buildTableForCustomerLabor(Parts: any, PrintPartNo: any, customerorInsurance: any): any;
269
+ static getSummaryHeaders(permission: boolean): any;
270
+ static CommonTotalDetails(ROPrintData: any, moreDiscDetails: boolean): any[];
271
+ }