shareneus 1.7.327 → 1.7.329

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.
@@ -167,9 +167,9 @@ class DebitNotePrintService {
167
167
  Items.forEach((Item) => {
168
168
  if (Consolidate) {
169
169
  let AfterDiscForEach = (0, math_operations_1.Divide)(Item.AfterPartDisc, Item.Qty);
170
- let CTaxAmtPerItem = (0, math_operations_1.Divide)(Item.CGST, Item.Qty);
171
- let STaxAmtPerItem = (0, math_operations_1.Divide)(Item.SGST, Item.Qty);
172
- let ITaxAmtPerItem = (0, math_operations_1.Divide)(Item.IGST, Item.Qty);
170
+ let CTaxAmtPerItem = (0, math_operations_1.Divide)(this.GetTaxAmountFromTaxes(Item, 'CGST'), Item.Qty);
171
+ let STaxAmtPerItem = (0, math_operations_1.Divide)(this.GetTaxAmountFromTaxes(Item, 'SGST'), Item.Qty);
172
+ let ITaxAmtPerItem = (0, math_operations_1.Divide)(this.GetTaxAmountFromTaxes(Item, 'IGST'), Item.Qty);
173
173
  Item.UnPr = tr_utils_1.TrUtils.FixedTo((0, math_operations_1.Add)(AfterDiscForEach, CTaxAmtPerItem, STaxAmtPerItem, ITaxAmtPerItem), DecimalsNumber);
174
174
  }
175
175
  else {
@@ -237,10 +237,10 @@ class DebitNotePrintService {
237
237
  static GetBillNameForInvoicePrint(OriginalInvoiceData, InvoicePrintData, IsBillTo) {
238
238
  let Customer = {};
239
239
  if (IsBillTo) {
240
- Customer.Name = OriginalInvoiceData.BillTo.Name;
240
+ Customer.Name = !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.Name : OriginalInvoiceData.BFrom.Name;
241
241
  Customer.Adrs = [];
242
242
  Customer.Cons = [];
243
- if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
243
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) && !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
244
244
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A1);
245
245
  if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Adrs.A2)) {
246
246
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A2);
@@ -249,8 +249,17 @@ class DebitNotePrintService {
249
249
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.Ct);
250
250
  }
251
251
  }
252
- Customer.GSTIN = OriginalInvoiceData.BillTo.GSTIN;
253
- if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
252
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BFrom) && !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BFrom.Adrs)) {
253
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A1);
254
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.A2)) {
255
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A2);
256
+ }
257
+ if (!tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.Ct)) {
258
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.Ct);
259
+ }
260
+ }
261
+ Customer.GSTIN = !tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.GSTIN : OriginalInvoiceData.BFrom.GSTIN;
262
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BillTo) && !tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
254
263
  Customer.Cons = [
255
264
  {
256
265
  Type: 'M',
@@ -258,6 +267,14 @@ class DebitNotePrintService {
258
267
  }
259
268
  ];
260
269
  }
270
+ if (!tr_utils_1.TrUtils.IsNull(OriginalInvoiceData.BFrom) && !tr_utils_1.TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Ph)) {
271
+ Customer.Cons = [
272
+ {
273
+ Type: 'M',
274
+ No: OriginalInvoiceData.BFrom.Ph
275
+ }
276
+ ];
277
+ }
261
278
  }
262
279
  else {
263
280
  Customer.Name = OriginalInvoiceData.BFrom.Name;
@@ -192,38 +192,38 @@ class WOPrintService {
192
192
  [{ text: ROPrintData.SANotes, style: 'tableHeader', colSpan: 2, lineHeight: 1, opacity: 0.9, }, ''],
193
193
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
194
194
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
195
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
196
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
197
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
198
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
199
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
200
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
201
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
202
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
203
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
204
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
205
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
206
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
207
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
208
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
209
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
210
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
211
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
212
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
213
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
214
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
215
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
216
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
217
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
218
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
219
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
220
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
221
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
222
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
223
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
224
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
195
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
196
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
197
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
198
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
199
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
200
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
201
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
202
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
203
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
204
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
205
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
206
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
207
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
208
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
209
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
210
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
211
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
212
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
213
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
214
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
215
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
216
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
217
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
218
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
219
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
220
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
221
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
222
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
223
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
224
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
227
227
  [{ text: 'Est. Amount : Rs. ' + ROPrintData.EstTotal, opacity: 0.9, style: 'tableHeader', colSpan: 2, alignment: 'right', bold: true }]
228
228
  // [{ text: 'Customer confirmation for Add Job :', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
229
229
  // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
@@ -126,7 +126,6 @@ function negateNumericLikeValue(value) {
126
126
  function getFirstFieldValue(item, dbFields = []) {
127
127
  for (const field of dbFields) {
128
128
  const value = readValue(item, field);
129
- console.log(`getFirstFieldValue - field: ${field}, value: ${value}`);
130
129
  if (value !== undefined && value !== null && value !== '') {
131
130
  return String(value);
132
131
  }
@@ -423,8 +423,6 @@ function shouldSkipFixedTo(header) {
423
423
  });
424
424
  }
425
425
  function getDisplayValueForFallbackRow(item, dbFields = [], shouldNegate = false) {
426
- console.log(item, dbFields);
427
- console.log('getFirstFieldValue', (0, pdf_table_row_1.getFirstFieldValue)(item, dbFields));
428
426
  const value = (0, pdf_table_row_1.getFirstFieldValue)(item, dbFields);
429
427
  if (!shouldNegate) {
430
428
  return value;
@@ -153,7 +153,6 @@ function GetDebitNotePDF(debitNoteData, entityData, headerConfig, printConfig, t
153
153
  dnPrint = debit_note_print_service_1.DebitNotePrintService.GetDebitNotePrintInfo(debitNotePrintData, entityData, image, true, true, taxCodes, false, true);
154
154
  }
155
155
  else {
156
- console.log('DebitNotePrintData before formatting', debitNotePrintData);
157
156
  debitNotePrintData.Round = tr_utils_1.TrUtils.FixedTo(debitNoteData.Round);
158
157
  debitNotePrintData.Total = tr_utils_1.TrUtils.FixedTo(debitNoteData.Total);
159
158
  debitNotePrintData.SubToal = tr_utils_1.TrUtils.FixedTo(debitNoteData.SubToal);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shareneus",
3
- "version": "1.7.327",
3
+ "version": "1.7.329",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -204,9 +204,9 @@ export class DebitNotePrintService {
204
204
  Items.forEach((Item: any) => {
205
205
  if (Consolidate) {
206
206
  let AfterDiscForEach = Divide(Item.AfterPartDisc, Item.Qty);
207
- let CTaxAmtPerItem = Divide(Item.CGST, Item.Qty);
208
- let STaxAmtPerItem = Divide(Item.SGST, Item.Qty);
209
- let ITaxAmtPerItem = Divide(Item.IGST, Item.Qty);
207
+ let CTaxAmtPerItem = Divide(this.GetTaxAmountFromTaxes(Item, 'CGST'), Item.Qty);
208
+ let STaxAmtPerItem = Divide(this.GetTaxAmountFromTaxes(Item, 'SGST'), Item.Qty);
209
+ let ITaxAmtPerItem = Divide(this.GetTaxAmountFromTaxes(Item, 'IGST'), Item.Qty);
210
210
  Item.UnPr = TrUtils.FixedTo(Add(AfterDiscForEach, CTaxAmtPerItem, STaxAmtPerItem, ITaxAmtPerItem), DecimalsNumber);
211
211
  } else {
212
212
  Item.UnPr = TrUtils.FixPriceValue(Item.UnPr, DecimalsNumber);
@@ -239,7 +239,7 @@ export class DebitNotePrintService {
239
239
  }
240
240
 
241
241
  static ReverseItemsForInvoicePrint(argInvoiceData: any) {
242
- argInvoiceData.Services = argInvoiceData.Services;
242
+ argInvoiceData.Services = argInvoiceData.Services;
243
243
  argInvoiceData.Items = argInvoiceData.Items;
244
244
  return argInvoiceData;
245
245
  }
@@ -279,10 +279,10 @@ export class DebitNotePrintService {
279
279
  static GetBillNameForInvoicePrint(OriginalInvoiceData: any, InvoicePrintData: any, IsBillTo: boolean) {
280
280
  let Customer: any = {};
281
281
  if (IsBillTo) {
282
- Customer.Name = OriginalInvoiceData.BillTo.Name;
282
+ Customer.Name = !TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.Name : OriginalInvoiceData.BFrom.Name;
283
283
  Customer.Adrs = [];
284
284
  Customer.Cons = [];
285
- if (!TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
285
+ if (!TrUtils.IsNull(OriginalInvoiceData.BillTo) && !TrUtils.IsNull(OriginalInvoiceData.BillTo.Adrs)) {
286
286
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A1);
287
287
  if (!TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Adrs.A2)) {
288
288
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.A2);
@@ -291,9 +291,18 @@ export class DebitNotePrintService {
291
291
  Customer.Adrs.push(OriginalInvoiceData.BillTo.Adrs.Ct);
292
292
  }
293
293
  }
294
- Customer.GSTIN = OriginalInvoiceData.BillTo.GSTIN;
294
+ if (!TrUtils.IsNull(OriginalInvoiceData.BFrom) && !TrUtils.IsNull(OriginalInvoiceData.BFrom.Adrs)) {
295
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A1);
296
+ if (!TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.A2)) {
297
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.A2);
298
+ }
299
+ if (!TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Adrs.Ct)) {
300
+ Customer.Adrs.push(OriginalInvoiceData.BFrom.Adrs.Ct);
301
+ }
302
+ }
303
+ Customer.GSTIN = !TrUtils.IsNull(OriginalInvoiceData.BillTo) ? OriginalInvoiceData.BillTo.GSTIN : OriginalInvoiceData.BFrom.GSTIN;
295
304
 
296
- if (!TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
305
+ if (!TrUtils.IsNull(OriginalInvoiceData.BillTo) && !TrUtils.IsEmpty(OriginalInvoiceData.BillTo.Ph)) {
297
306
  Customer.Cons = [
298
307
  {
299
308
  Type: 'M',
@@ -302,6 +311,15 @@ export class DebitNotePrintService {
302
311
  ];
303
312
  }
304
313
 
314
+ if (!TrUtils.IsNull(OriginalInvoiceData.BFrom) && !TrUtils.IsEmpty(OriginalInvoiceData.BFrom.Ph)) {
315
+ Customer.Cons = [
316
+ {
317
+ Type: 'M',
318
+ No: OriginalInvoiceData.BFrom.Ph
319
+ }
320
+ ];
321
+ }
322
+
305
323
  } else {
306
324
  Customer.Name = OriginalInvoiceData.BFrom.Name;
307
325
  }
@@ -220,38 +220,38 @@ export class WOPrintService {
220
220
  [{ text: ROPrintData.SANotes, style: 'tableHeader', colSpan: 2, lineHeight: 1, opacity: 0.9, }, ''],
221
221
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
222
222
  [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
223
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
224
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
227
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
228
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
229
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
230
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
231
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
232
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
233
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
234
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
235
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
236
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
237
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
238
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
239
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
240
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
241
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
242
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
243
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
244
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
245
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
246
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
247
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
248
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
249
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
250
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
251
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
252
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
253
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
254
- [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
223
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
224
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
225
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
226
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
227
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
228
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
229
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
230
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
231
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
232
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
233
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
234
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
235
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
236
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
237
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
238
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
239
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
240
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
241
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
242
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
243
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
244
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
245
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
246
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
247
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
248
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
249
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
250
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
251
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
252
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
253
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
254
+ // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
255
255
  [{ text: 'Est. Amount : Rs. ' + ROPrintData.EstTotal, opacity: 0.9, style: 'tableHeader', colSpan: 2, alignment: 'right', bold: true }]
256
256
  // [{ text: 'Customer confirmation for Add Job :', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
257
257
  // [{ text: '', style: 'tableHeader', colSpan: 2, lineHeight: 1 }, ''],
@@ -139,7 +139,6 @@ function negateNumericLikeValue(value: string) {
139
139
  export function getFirstFieldValue(item: any, dbFields: string[] = []) {
140
140
  for (const field of dbFields) {
141
141
  const value = readValue(item, field);
142
- console.log(`getFirstFieldValue - field: ${field}, value: ${value}`);
143
142
  if (value !== undefined && value !== null && value !== '') {
144
143
  return String(value);
145
144
  }
@@ -477,8 +477,6 @@ function shouldSkipFixedTo(header: any) {
477
477
  }
478
478
 
479
479
  function getDisplayValueForFallbackRow(item: any, dbFields: string[] = [], shouldNegate: boolean = false) {
480
- console.log(item, dbFields);
481
- console.log('getFirstFieldValue', getFirstFieldValue(item, dbFields));
482
480
  const value = getFirstFieldValue(item, dbFields);
483
481
  if (!shouldNegate) {
484
482
  return value;
@@ -167,7 +167,6 @@ export function GetDebitNotePDF(debitNoteData: any, entityData: any, headerConfi
167
167
  if (options.ConsolidateGST) {
168
168
  dnPrint = DebitNotePrintService.GetDebitNotePrintInfo(debitNotePrintData,entityData, image,true, true, taxCodes, false, true);
169
169
  } else {
170
- console.log('DebitNotePrintData before formatting', debitNotePrintData);
171
170
  debitNotePrintData.Round = TrUtils.FixedTo(debitNoteData.Round);
172
171
  debitNotePrintData.Total = TrUtils.FixedTo(debitNoteData.Total);
173
172
  debitNotePrintData.SubToal = TrUtils.FixedTo(debitNoteData.SubToal);