From: Joe Hunt Date: Mon, 15 May 2017 13:08:39 +0000 (+0200) Subject: Rerun. 0003864: [Fixed Assets] GL Transactions for Fixed Asset Sales are wrong (patch... X-Git-Tag: v2.4.2~19^2~11 X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=203767c14f89edb2740c8ca1dcbba0e55468aa3e Rerun. 0003864: [Fixed Assets] GL Transactions for Fixed Asset Sales are wrong (patch provided) --- diff --git a/sales/includes/db/sales_delivery_db.inc b/sales/includes/db/sales_delivery_db.inc index 273de917..8276eb51 100644 --- a/sales/includes/db/sales_delivery_db.inc +++ b/sales/includes/db/sales_delivery_db.inc @@ -143,7 +143,7 @@ function write_sales_delivery(&$delivery,$bo_policy) "The stock side of the cost of sales GL posting could not be inserted"); /*finally adjust sales account with the remaining*/ add_gl_trans_std_cost(ST_CUSTDELIVERY, $delivery_no, $delivery->document_date, - $stock_gl_code["sales_account"], 0, 0, "", + $stock_gl_code["cogs_account"], 0, 0, "", ($fa_purchase_cost - $fa_depreciation), PT_CUSTOMER, $delivery->customer_id, "The stock side of the cost of sales GL posting could not be inserted");