X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fdb%2Fsales_invoice_db.inc;fp=sales%2Fincludes%2Fdb%2Fsales_invoice_db.inc;h=f1c72672ffc5f8b59e97f69d852b80d3e188edb4;hb=128be63f9ae68744f37eae8072f95d0f524f86b4;hp=9b9ab467ed7eea9b4dd89990929fd19b23bc8b4a;hpb=0e9e4cf4f01431531dfed299bb501955bb0818ed;p=fa-stable.git diff --git a/sales/includes/db/sales_invoice_db.inc b/sales/includes/db/sales_invoice_db.inc index 9b9ab467..f1c72672 100644 --- a/sales/includes/db/sales_invoice_db.inc +++ b/sales/includes/db/sales_invoice_db.inc @@ -188,10 +188,7 @@ function write_sales_invoice(&$invoice) $amount = $items_total + $items_added_tax + $invoice->freight_cost + $freight_added_tax; - // to use debtors.pmt_discount on cash sale: - // extend invoice entry page with final amount after discount - // and change line below. - $discount = 0; // $invoice->cash_discount*$amount; + $discount = 0; $pmtno = write_customer_payment(0, $invoice->customer_id, $invoice->Branch, $invoice->pos['pos_account'], $date_, $Refs->get_next(ST_CUSTPAYMENT, null, array('customer' => $invoice->customer_id,