test formula for 509.2 with logs 2
This commit is contained in:
parent
1d17abcfe7
commit
81ba16b057
|
|
@ -793,7 +793,8 @@ function calculate_509_2(frm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
(frm.doc.vergi_hesab_1ci_1 || []).forEach(row => {
|
(frm.doc.vergi_hesab_1ci_1 || []).forEach(row => {
|
||||||
if (row.göstəricilər && row.göstəricilər.startsWith('503.1')) {
|
// Точное совпадение: после "503.1" должен быть пробел, а не точка (чтобы не совпадало с 503.1.1)
|
||||||
|
if (row.göstəricilər && row.göstəricilər.startsWith('503.1 ')) {
|
||||||
console.log(' ✓ Найдена строка 503.1:', row);
|
console.log(' ✓ Найдена строка 503.1:', row);
|
||||||
console.log(' Значение manatla (до flt):', row.manatla);
|
console.log(' Значение manatla (до flt):', row.manatla);
|
||||||
value_503_1 = flt(row.manatla);
|
value_503_1 = flt(row.manatla);
|
||||||
|
|
@ -817,7 +818,8 @@ function calculate_509_2(frm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
(frm.doc.vergi_hesab_2ci || []).forEach(row => {
|
(frm.doc.vergi_hesab_2ci || []).forEach(row => {
|
||||||
if (row.göstəricilər && row.göstəricilər.startsWith('504.1')) {
|
// Точное совпадение: после "504.1" должен быть пробел, а не точка (чтобы не совпадало с 504.1.1)
|
||||||
|
if (row.göstəricilər && row.göstəricilər.startsWith('504.1 ')) {
|
||||||
console.log(' ✓ Найдена строка 504.1:', row);
|
console.log(' ✓ Найдена строка 504.1:', row);
|
||||||
console.log(' Значение manatla (до flt):', row.manatla);
|
console.log(' Значение manatla (до flt):', row.manatla);
|
||||||
value_504_1 = flt(row.manatla);
|
value_504_1 = flt(row.manatla);
|
||||||
|
|
@ -860,7 +862,8 @@ function calculate_509_2(frm) {
|
||||||
|
|
||||||
let found_509_2 = false;
|
let found_509_2 = false;
|
||||||
(frm.doc.vergi_hesab_5ci || []).forEach(row => {
|
(frm.doc.vergi_hesab_5ci || []).forEach(row => {
|
||||||
if (row.göstəricilər && row.göstəricilər.startsWith('509.2')) {
|
// Точное совпадение: после "509.2" должен быть пробел
|
||||||
|
if (row.göstəricilər && row.göstəricilər.startsWith('509.2 ')) {
|
||||||
console.log(' ✓ Найдена строка 509.2:', row);
|
console.log(' ✓ Найдена строка 509.2:', row);
|
||||||
console.log(' Текущее значение manatla:', row.manatla);
|
console.log(' Текущее значение manatla:', row.manatla);
|
||||||
console.log(' Устанавливаем новое значение:', result);
|
console.log(' Устанавливаем новое значение:', result);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue