fix(est): retain legacy quantity links in Excel
This commit is contained in:
@@ -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};
|
||||
})()""",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user