Hi Techies,
We have a requirement where we need to get sales invoice totals from 'Totals' form of Sales orders. But here we need to modify the quantity and take the amount only for modified quantity in logic.
salesTotals = SalesTotals::construct(salesTable, SalesUpdate::All);
salesTotals.calc();
For instance - Suppose There is sales order having 2 sales lines with total sales qty 20 and each line is having 10 sales qty. Standard will show invoice amount on Sales totals form based on total qty of Sales order i.e., 20. But in our case , Out of 10 qty of first sales line , if we are doing work creation of partial 4 qty then invoice amount should be calculated based on 4 qty of first sales line and that amount to be shown up on new customize report before doing actual invoicing.
Can anyone guide on this please.
Thanks in advance.
Sangram