Added POS name in cash payment memo.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 3 Feb 2018 11:09:56 +0000 (12:09 +0100)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Sat, 3 Feb 2018 17:02:46 +0000 (18:02 +0100)
sales/includes/db/sales_invoice_db.inc

index 90be614ef1425b867c21fac7cfb57bf49243145e..ec650f302e02ff7d861deed3d4737b55c4b4334a 100644 (file)
@@ -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);