Hi, I need X++ code snippet for following requirement :
Standard : Salesorders are posted with (salesline default configured financial dimensions).
Custom requirement : We have custom form with respect to salesline to configure two or more financial dimensions group and amounts can be splitted across those financial dimensions. When posting a salesorder, the transaction vouchers should be splitted between different dimensions based on the amounts.
Example :
Line amount = $1000
custom dimensions configured for that line :
D1-D2-D3-D4 $600
D5-D6-D3-D4 $400
Expected invoice posted voucher :
D1-D2-D3-D4 $600(dbt)
D1-D2-D3-D4 -$600(crdt)
D5-D6-D3-D4 $400(dbt)
D5-D6-D3-D4 -$400(crdt)