How to: Extend Use Cases
Note:
If the partner extended new fields in the "POS Trans Line" table or "POS Transaction" table and extended the use cases by adding conditions using new custom fields, then you must subscribe to the below events from the "LSCIN Calculate Tax" codeunit and update "HeaderInputVal"
and "LineInputVal"
parameters. This is available from version LS Central 20.5 onwards.
Example:
Copy
[EventSubscriber(ObjectType::codeunit, codeunit::"LSCIN Calculate Tax", 'OnAfterPrepareTaxEngUseCaseInputVal', '', false, false)] procedure OnAfterPrepareTaxEngUseCaseInputVal(POSTransaction: Record "LSC POS Transaction"; POSTransLine: Record "LSC POS Trans. Line"; var HeaderInputVal: Text[500]; var LineInputVal: Text[500]);
var
POSTrans_Line: Record "LSC POS Trans. Line";
POSTrans: Record "LSC POS Transaction";
begin
HeaderInputVal := HeaderInputVal + '|' + format(POSTransaction."Custom Field 1") + '|'
+ format(POSTransaction."Custom Field 2");
LineInputVal:= LineInputVal + '|'+ format(POSTransLine."Custom Field 1") + '|'
+ format(POSTransLine."Custom Field 2");
end;