https://xlinesoft.com/blog/2019/02/07/using-invoice-template-as-a-checkout-solution/
- rs = CustomQuery("select invnumber from invoice_number");
- $data = db_fetch_array($rs);
- $values['invoice_number'] = "INV-X".str_pad($data["invnumber"]+1, 7, "0",STR_PAD_LEFT);
- CustomQuery("update invoice_number set invnumber=invnumber+1");
0 comments:
Post a Comment