02-19-2020, 01:20 PM
I reproduce the bug in the demo env.
Steps:
Create two item custom fields:
sale order item remark
text 99
cf_1145
invoice item remark
text 99
cf_1146
Create tree business maps:
SalesOrderInventoryDetails
<map>
<originmodule>SalesOrder</originmodule>
<targetmodule>InventoryDetails</targetmodule>
<linkfields>
<originfield>lineitem_id</originfield>
<targetfield>lineitem_id</targetfield>
</linkfields>
<sortfield>sequence_no</sortfield>
<detailview>
<fields>
<field>
<fieldtype>corebos</fieldtype>
<fieldname>cf_1145</fieldname>
<editable>1</editable>
<mandatory>1</mandatory>
<hidden>0</hidden>
</field>
</fields>
</detailview>
</map>
InvoiceInventoryDetails
<map>
<originmodule>Invoice</originmodule>
<targetmodule>InventoryDetails</targetmodule>
<linkfields>
<originfield>lineitem_id</originfield>
<targetfield>lineitem_id</targetfield>
</linkfields>
<sortfield>sequence_no</sortfield>
<detailview>
<fields>
<field>
<fieldtype>corebos</fieldtype>
<fieldname>cf_1146</fieldname>
<editable>1</editable>
<mandatory>1</mandatory>
<hidden>0</hidden>
</field>
</fields>
</detailview>
</map>
SalesOrder2Invoice
<map>
<originmodule>
<originname>SalesOrder</originname>
</originmodule>
<targetmodule>
<targetname>Invoice</targetname>
</targetmodule>
<fields>
<field>
<fieldname>cf_1146</fieldname>
<Orgfields>
<Orgfield>
<OrgfieldName>cf_1145</OrgfieldName>
</Orgfield>
</Orgfields>
</field>
</fields>
</map>
Steps:
Create two item custom fields:
sale order item remark
text 99
cf_1145
invoice item remark
text 99
cf_1146
Create tree business maps:
SalesOrderInventoryDetails
<map>
<originmodule>SalesOrder</originmodule>
<targetmodule>InventoryDetails</targetmodule>
<linkfields>
<originfield>lineitem_id</originfield>
<targetfield>lineitem_id</targetfield>
</linkfields>
<sortfield>sequence_no</sortfield>
<detailview>
<fields>
<field>
<fieldtype>corebos</fieldtype>
<fieldname>cf_1145</fieldname>
<editable>1</editable>
<mandatory>1</mandatory>
<hidden>0</hidden>
</field>
</fields>
</detailview>
</map>
InvoiceInventoryDetails
<map>
<originmodule>Invoice</originmodule>
<targetmodule>InventoryDetails</targetmodule>
<linkfields>
<originfield>lineitem_id</originfield>
<targetfield>lineitem_id</targetfield>
</linkfields>
<sortfield>sequence_no</sortfield>
<detailview>
<fields>
<field>
<fieldtype>corebos</fieldtype>
<fieldname>cf_1146</fieldname>
<editable>1</editable>
<mandatory>1</mandatory>
<hidden>0</hidden>
</field>
</fields>
</detailview>
</map>
SalesOrder2Invoice
<map>
<originmodule>
<originname>SalesOrder</originname>
</originmodule>
<targetmodule>
<targetname>Invoice</targetname>
</targetmodule>
<fields>
<field>
<fieldname>cf_1146</fieldname>
<Orgfields>
<Orgfield>
<OrgfieldName>cf_1145</OrgfieldName>
</Orgfield>
</Orgfields>
</field>
</fields>
</map>