View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000499 | OXID eShop (all versions) | 2.6. Administer orders | public | 2009-01-12 15:35 | 2012-12-10 13:17 |
Reporter | marco_steinhaeuser | Assigned To | |||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.0.0.2 revision 14967 | ||||
Fixed in Version | 4.1.0 revision 17976 | ||||
Summary | 0000499: Manually set invoice number is not shown in PDF invoice | ||||
Description | In admin panel, go to Orders -> Main and change the Invoice No. field. Afterwards, go to Overview -> Create PDF. The manually given invoice number is not shown in your PDF invoice. | ||||
Tags | PDF Invoice | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||
|
Have a look at this one: http://www.oxid-esales.com/de/bugtrack/task/2159 Both, order number and invoice number are different numbers in a commercial manner and shall be handled separately. AFAIK, there are different fields in OXORDER table, similiar to "oxodernr" and "oxinvoicenr" that shall be stuffed by admin entries. When generating the PDF, both numbers shall be leached from database and inserted within myorder.php. |
|
There are two values with the same meaning: - OXBILLNR is manipulated from admin panel and stored in DB - OXINVOICENR is not editable in admin but handled in myorder. To quickly resolve this bug simply replace oxorder::oxinvoicenr by oxorder::oxbillnr. As there must be a reason for two fields with the same meaning (I don't believe in an accident here), it shall be helpful to 1. check if oxinvoicenr is used somewhere else in the shop 2. ask a PM for any external reason (ERP-software or similar) before deleting the field completely. |
|
I simply replaced "oxinvoicenr" by "oxbillnr" in the complete /modules/myorder.php and it worked pretty well. Actually, the value beyond tax ID information on the right hand side of the invoice footer is meant. |
|
replaced oxorder::oxinvoicenr by oxorder::oxbillnr + added oxorder::getNextBillNum() for getting next possible billnr if none entered. |