shareneus 1.6.61 → 1.6.63
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.
|
@@ -83,9 +83,9 @@ class InvoiceTotalsService {
|
|
|
83
83
|
Operation.Pr = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.Pr);
|
|
84
84
|
Operation.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.RecDisc);
|
|
85
85
|
Operation.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Operation.Disc);
|
|
86
|
-
Operation.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Operation, 'CGST')
|
|
87
|
-
Operation.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Operation, 'SGST')
|
|
88
|
-
Operation.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Operation, 'IGST')
|
|
86
|
+
Operation.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Operation, 'CGST'));
|
|
87
|
+
Operation.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Operation, 'SGST'));
|
|
88
|
+
Operation.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Operation, 'IGST'));
|
|
89
89
|
Operation.TCode = this.GetTCodeFromTaxes(Operation);
|
|
90
90
|
return Operation;
|
|
91
91
|
}
|
|
@@ -116,9 +116,9 @@ class InvoiceTotalsService {
|
|
|
116
116
|
Part.UnPr = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.UnPr);
|
|
117
117
|
Part.Disc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.Disc);
|
|
118
118
|
Part.RecDisc = tr_utils_1.TrUtils.SetValueToZeroIfNull(Part.RecDisc);
|
|
119
|
-
Part.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Part, 'CGST')
|
|
120
|
-
Part.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Part, 'SGST')
|
|
121
|
-
Part.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Part, 'IGST')
|
|
119
|
+
Part.CGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Part, 'CGST'));
|
|
120
|
+
Part.SGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Part, 'SGST'));
|
|
121
|
+
Part.IGST = tr_utils_1.TrUtils.SetValueToZeroIfNull(this.GetTaxAmountFromTaxes(Part, 'IGST'));
|
|
122
122
|
Part.TCode = this.GetTCodeFromTaxes(Part);
|
|
123
123
|
return Part;
|
|
124
124
|
}
|
|
@@ -192,16 +192,13 @@ class IssuePartsprintService {
|
|
|
192
192
|
let Taxable = 0;
|
|
193
193
|
let FinalTotal = 0;
|
|
194
194
|
Parts.forEach((part) => {
|
|
195
|
-
console.log('part', part);
|
|
196
195
|
Qty = Qty + part.Qty;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
IGSTAMT = IGSTAMT + part.IGSTAmt;
|
|
196
|
+
CGSTAMT = CGSTAMT + Number(part.CGSTAmt);
|
|
197
|
+
SGSTAMT = SGSTAMT + Number(part.SGSTAmt);
|
|
198
|
+
IGSTAMT = IGSTAMT + Number(part.IGSTAmt);
|
|
201
199
|
Taxable = Taxable + part.AfterPartDisc;
|
|
202
200
|
FinalTotal = FinalTotal + part.AfterPartTax;
|
|
203
201
|
});
|
|
204
|
-
console.log(CGSTAMT, SGSTAMT, IGSTAMT);
|
|
205
202
|
let dpartadding1 = {};
|
|
206
203
|
dpartadding1.SNo = '';
|
|
207
204
|
dpartadding1.Desc = 'Spare Total';
|