shareneus 1.7.326 → 1.7.327
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/shared/table-section/pdf-table.row.js +1 -1
- package/dist/shared/table-section/pdf-table.section.js +2 -0
- package/dist/shared/transactions-pdf.service.js +1 -0
- package/package.json +1 -1
- package/src/shared/table-section/pdf-table.row.ts +1 -1
- package/src/shared/table-section/pdf-table.section.ts +2 -0
- package/src/shared/transactions-pdf.service.ts +1 -0
|
@@ -124,9 +124,9 @@ function negateNumericLikeValue(value) {
|
|
|
124
124
|
return String(normalized === 0 ? 0 : -Math.abs(normalized));
|
|
125
125
|
}
|
|
126
126
|
function getFirstFieldValue(item, dbFields = []) {
|
|
127
|
-
console.log('getFirstFieldValue', item, dbFields);
|
|
128
127
|
for (const field of dbFields) {
|
|
129
128
|
const value = readValue(item, field);
|
|
129
|
+
console.log(`getFirstFieldValue - field: ${field}, value: ${value}`);
|
|
130
130
|
if (value !== undefined && value !== null && value !== '') {
|
|
131
131
|
return String(value);
|
|
132
132
|
}
|
|
@@ -423,6 +423,8 @@ 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));
|
|
426
428
|
const value = (0, pdf_table_row_1.getFirstFieldValue)(item, dbFields);
|
|
427
429
|
if (!shouldNegate) {
|
|
428
430
|
return value;
|
|
@@ -153,6 +153,7 @@ 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);
|
|
156
157
|
debitNotePrintData.Round = tr_utils_1.TrUtils.FixedTo(debitNoteData.Round);
|
|
157
158
|
debitNotePrintData.Total = tr_utils_1.TrUtils.FixedTo(debitNoteData.Total);
|
|
158
159
|
debitNotePrintData.SubToal = tr_utils_1.TrUtils.FixedTo(debitNoteData.SubToal);
|
package/package.json
CHANGED
|
@@ -137,9 +137,9 @@ function negateNumericLikeValue(value: string) {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
export function getFirstFieldValue(item: any, dbFields: string[] = []) {
|
|
140
|
-
console.log('getFirstFieldValue', item, dbFields);
|
|
141
140
|
for (const field of dbFields) {
|
|
142
141
|
const value = readValue(item, field);
|
|
142
|
+
console.log(`getFirstFieldValue - field: ${field}, value: ${value}`);
|
|
143
143
|
if (value !== undefined && value !== null && value !== '') {
|
|
144
144
|
return String(value);
|
|
145
145
|
}
|
|
@@ -477,6 +477,8 @@ 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));
|
|
480
482
|
const value = getFirstFieldValue(item, dbFields);
|
|
481
483
|
if (!shouldNegate) {
|
|
482
484
|
return value;
|
|
@@ -167,6 +167,7 @@ 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);
|
|
170
171
|
debitNotePrintData.Round = TrUtils.FixedTo(debitNoteData.Round);
|
|
171
172
|
debitNotePrintData.Total = TrUtils.FixedTo(debitNoteData.Total);
|
|
172
173
|
debitNotePrintData.SubToal = TrUtils.FixedTo(debitNoteData.SubToal);
|