fix(est): retain legacy quantity links in Excel

This commit is contained in:
2026-11-07 08:25:13 +09:00
parent bc41c8716f
commit a0461bf042
2 changed files with 10 additions and 4 deletions
+2 -2
View File
@@ -225,10 +225,10 @@ def test_excel_quantity_document_roundtrip_keeps_optional_original_fields():
"""(()=>{
const p=EstNative.empty();p.quantitySheets=[{Code:'Q',Name:'sheet',options:{digits:2,roundMode:2},
rows:[{LineData:'1 = \\x120\\x12',markers:['r1']}],
items:[{Code:'r1',Name:'item',Size:null,Unite:null,GN:null,LinkCode:null,Extra:'keep'}]}];
items:[{Code:'r1',Name:'item',Size:null,Unite:null,GN:null,LinkCode:'X',Extra:'keep'}]}];
const tables={QDocuments:[{Code:'Q',Name:'sheet',digits:2,roundMode:2}],
QLines:[{DocumentCode:'Q',Position:1,LineData:'1 = \\x120\\x12',Markers:'["r1"]'}],
QItems:[{DocumentCode:'Q',Position:1,Code:'r1',Name:'item',Size:null,Unite:null,GN:null,TargetCode:null,TargetKey:null}]};
QItems:[{DocumentCode:'Q',Position:1,Code:'r1',Name:'item',Size:null,Unite:null,GN:null,TargetCode:'X',TargetKey:null}]};
return {before:p.quantitySheets,after:EstExchange.apply(p,tables).quantitySheets};
})()""",
)