From f5a86be183c6023b189199c69ac409df1b7116df Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sat, 3 Feb 2018 12:09:56 +0100 Subject: [PATCH] Added POS name in cash payment memo. --- sales/includes/db/sales_invoice_db.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/includes/db/sales_invoice_db.inc b/sales/includes/db/sales_invoice_db.inc index 90be614e..ec650f30 100644 --- a/sales/includes/db/sales_invoice_db.inc +++ b/sales/includes/db/sales_invoice_db.inc @@ -203,7 +203,7 @@ function write_sales_invoice(&$invoice) $Refs->get_next(ST_CUSTPAYMENT, null, array('customer' => $invoice->customer_id, 'branch' => $invoice->Branch, 'date' => $date_)), $amount-$discount, $discount, - _('Cash invoice').' '.$invoice_no); + $invoice->pos['pos_name'].' #'.$invoice_no); add_cust_allocation($amount, ST_CUSTPAYMENT, $pmtno, ST_SALESINVOICE, $invoice_no, $invoice->customer_id, $date_); update_debtor_trans_allocation(ST_SALESINVOICE, $invoice_no, $invoice->customer_id); -- 2.30.2