X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fsales_delivery_db.inc;h=8276eb5113d335a30e46aa0c9d61cbb51fd2c7f5;hb=203767c14f89edb2740c8ca1dcbba0e55468aa3e;hp=273de917756c42006b4f25c4f47be154f3b3084e;hpb=e6889facea537bbee7b66151c95790a13d0fff59;p=fa-stable.git 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");