From 8d564a2cbca92c71738d933813ac4985e15488e4 Mon Sep 17 00:00:00 2001 From: Joe Date: Fri, 17 Jan 2014 13:38:45 +0100 Subject: [PATCH] 0002615: Rerun. voiding an allocated currency invoice doesn't clear FX account --- sales/includes/db/custalloc_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/includes/db/custalloc_db.inc b/sales/includes/db/custalloc_db.inc index 3010931d..1e58c2b1 100644 --- a/sales/includes/db/custalloc_db.inc +++ b/sales/includes/db/custalloc_db.inc @@ -78,7 +78,7 @@ function clear_cust_alloctions($type, $type_no, $date="") // 2014-01-16 Joe Hunt. Fix for voiding allocated currency sales_invoices. elseif ($type == ST_SALESINVOICE && $row['trans_type_to'] == $type && $row['trans_no_to'] == $type_no) exchange_variation($row['trans_type_from'], $row['trans_no_from'], $row['trans_type_to'], $row['trans_no_to'], - sql2date($row['date_alloc']), $row['amt'], PT_SUPPLIER, true); + sql2date($row['date_alloc']), $row['amt'], PT_CUSTOMER, true); ////////////////////// } -- 2.30.2