Hi
In my project i create credit memo(AR transaction) with API ar_invoice_api_pub.create_single_invoice to create credit memo and then arp_etax_services_pkg.calculate_tax to recalculate line amount with tax. Credit memo created and line amount ok with tax,But sum amount in header is incorrect.(R12.2.5)
For example:
---------line------------------
l_trx_lines_tbl(1).unit_selling_price := -1 * 100;
----------tax--------------
l_trx_lines_tbl(2).amount := -17
----created-----
line_amount = -100;
tax_amount = -17;
line_sum_amount = -100;
header_line_amount = -100;
header_tax_amount = -17;
header_sum = -117;
Click un_completed and then completed header_sum_amount will re-calculate to correct one. So any step i missed in my code?