How to apply POWrapper to ITaxProvider and StandardTaxProvider to extend MMovement with Tax

40 views
Skip to first unread message

shiju01

unread,
Mar 12, 2018, 10:33:07 AM3/12/18
to iDempiere
Hi

Please provide a high level technical outline to apply POWrapper to ITaxProvider and StandardTaxProvider to extend MMovement with Tax

shiju01

unread,
Mar 14, 2018, 7:18:22 AM3/14/18
to iDempiere

Here the classes involved are following

a) ITaxProvider
b) StandardTaxProvider
c) MTaxProvider

Now if someone wants to generate Tax for core documents like Movement or Inventory for any vague legal reason  what should be the approch ?

How to avoid the error "Cannot cast to Generic PO class" if the POWrapper technic is used to add additional parice and amount columns like PriceActual and LineNetAmt etc to header as well as line table  


Purtucularly becuase of  following line

ITaxProvider calculator = Core.getTaxProvider(provider);
Reply all
Reply to author
Forward
0 new messages