View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000977 | OXID eShop (all versions) | 2.6. Administer orders | public | 2009-06-05 12:17 | 2012-12-10 13:17 |
Reporter | andreas_bobek | Assigned To | |||
Priority | high | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.1.0 revision 17976 | ||||
Fixed in Version | 4.1.3 revision 19918 | ||||
Summary | 0000977: Generation of invoice number restarts with 1 and ends when reaching 1000 | ||||
Description | After updating to Rev. 17976 the generation of invoice numbers will restart with 1. There were small changes in myorder.php (see "Additional Information"). OXBILLNR is now used instead of OXINVOICENR. However, oxbillnr fields are empty. When executing "update oxorder set oxbillnr=oxinvoicenr;" old invoices are generated with their correct invoice numbers. But new invoice numbers are always generated with the same value "1000" (at least in our system were we already had higher invoice numbers). | ||||
Additional Information | public function genPdf( $sFilename, $iSelLang = 0 ){ ... // setting invoice number if ( !$this->oxorder__oxbillnr->value ) { $this->oxorder__oxbillnr->setValue($this->getNextBillNum()); $this->save(); } ... } | ||||
Tags | PDF Invoice | ||||
Theme | |||||
Browser | All | ||||
PHP Version | 5.2.6 | ||||
Database Version | 5.0.33 | ||||