test formula for 509.2 with logs 2
This commit is contained in:
parent
1d17abcfe7
commit
81ba16b057
|
|
@ -793,6 +793,7 @@ function calculate_509_2(frm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
(frm.doc.vergi_hesab_1ci_1 || []).forEach(row => {
|
(frm.doc.vergi_hesab_1ci_1 || []).forEach(row => {
|
||||||
|
// Точное совпадение: после "503.1" должен быть пробел, а не точка (чтобы не совпадало с 503.1.1)
|
||||||
if (row.göstəricilər && row.göstəricilər.startsWith('503.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);
|
||||||
|
|
@ -817,6 +818,7 @@ function calculate_509_2(frm) {
|
||||||
}
|
}
|
||||||
|
|
||||||
(frm.doc.vergi_hesab_2ci || []).forEach(row => {
|
(frm.doc.vergi_hesab_2ci || []).forEach(row => {
|
||||||
|
// Точное совпадение: после "504.1" должен быть пробел, а не точка (чтобы не совпадало с 504.1.1)
|
||||||
if (row.göstəricilər && row.göstəricilər.startsWith('504.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);
|
||||||
|
|
@ -860,6 +862,7 @@ 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 => {
|
||||||
|
// Точное совпадение: после "509.2" должен быть пробел
|
||||||
if (row.göstəricilər && row.göstəricilər.startsWith('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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue