- update_debtor_trans_allocation(10, $credit_invoice, $allocate_amount);
- update_debtor_trans_allocation(11, $credit_no, $allocate_amount); // ***
- add_cust_allocation($allocate_amount, 11, $credit_no, 10, $credit_invoice);
+ update_debtor_trans_allocation(ST_SALESINVOICE, $credit_invoice, $allocate_amount);
+ update_debtor_trans_allocation(ST_CUSTCREDIT, $credit_no, $allocate_amount); // ***
+ add_cust_allocation($allocate_amount, ST_CUSTCREDIT, $credit_no, ST_SALESINVOICE, $credit_invoice);
+ // Exchange Variations Joe Hunt 2008-09-20 ////////////////////////////////////////
+
+ exchange_variation(ST_CUSTCREDIT, $credit_no, ST_SALESINVOICE, $credit_invoice, $credit_date,
+ $allocate_amount, PT_CUSTOMER);
+
+ ///////////////////////////////////////////////////////////////////////////
+