System - Settings - Stores - Option Tab
Invoice Prefix is set to : 'INV-2017-00'
I place a test order and this order is given an Order-ID (for example #36).
The order status is pending and in the admin section - Sales - Orders, I edit the order and generate the Invoice: INV-0021
Not what I am expecting, am I missing something here?
Invoice Prefix is set to : 'INV-2017-00'
I place a test order and this order is given an Order-ID (for example #36).
The order status is pending and in the admin section - Sales - Orders, I edit the order and generate the Invoice: INV-0021
Not what I am expecting, am I missing something here?
/Marcel
v3.0.2.0 release does store the invoice prefix from the settings into the order from the checkout confirmation page and from the APi. Unless using an extension, the results you are reporting should not happen by default.
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Let's try a comparison between checkout and the admin order sales.
In catalog/model/checkout/order.php file,
find:
add below:
In admin/model/sale/order.php file,
find:
add above:
In catalog/controller/api/order.php file,
find each instances of:
add on the first:
add on the second:
Then, create a new checkout order. Lastly, go to the admin and redo the activity you first mentioned on your first post. After completing these steps, go to your admin - > system - > maintenance - > error log and see if you notice the new messages of these tests appearing in the logs. If so, this is intended. Once posted the results on the forum, you can remove the steps above.
In catalog/model/checkout/order.php file,
find:
Code: Select all
$order_id = $this->db->getLastId();
Code: Select all
$log = new Log('error.log');
$log->write('Checkout Order Invoice Prefix: ' . $data['invoice_prefix'] . ' (invoice number not generated yet at this point)');
find:
Code: Select all
return $order_info['invoice_prefix'] . $invoice_no;
Code: Select all
$log = new Log('error.log');
$log->write('Admin Order Invoice Prefix: ' . $order_info['invoice_prefix'] . $invoice_no . ' (invoice number generated)');
find each instances of:
Code: Select all
// Store Details
Code: Select all
$log = new Log('error.log');
$log->write('Admin Add Order Invoice Prefix - API: ' . $order_data['invoice_prefix'] . ' (invoice number not generated yet at this point)');
Code: Select all
$log = new Log('error.log');
$log->write('Admin Edit Order Invoice Prefix - API: ' . $order_data['invoice_prefix'] . ' (invoice number not generated yet at this point)');
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Possibly. 

Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 9 guests