Hi all,
We have a class which processes sales orders with EDI. We are tasked with applying a check that if the ordered quantity is less than three, the journal should be converted into sales order and sales order will be cancelled.
I want to count the total quantity of all the lines of a sales order. Then, compare this quantity with a field in a division/override form.
If the sales order total quantity is exceeding this field's quantity, it should proceed to create the order, else it should convert the journal into sales order which will subsequently be cancelled. How can I do this entire operation ?