Hi,
I've been asked to explore implementing a new fee at my company. I wrote a 2.x suitescript that runs on afterSubmit on quotes, sales orders, invoices, and cash sales that 1) calculates the fee amount based on item attributes of items on the order, and 2) adds the fee as an Other Charge line item OR adjusts the amount of the fee if it is already on the transaction.
In my testing, it seems to be working great.
However, my roadblock is billing.
These items are largely shipped items with 2-3 days turnaround. We run automated billing that only bills on shipped items. But that Other Charge item is NOT fulfilled. The automated billing generates an invoice or cash sale for that fee before the items are shipped. This is not good.
How can I prevent the creation of invoices or cash sales where the fee is the only thing on them?
(I know I could perhaps make the Other Charge fulfillable, but I can't send it to our warehouse on the item fulfillment due to a partner limitation. And trying to script out the timing of fulfilling it from a different warehouse, made up warehouse, seems like more complexity than I should need.)
This seems no uncommon. How could I manage this? All advice welcome!