View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004239 | OXID eShop (all versions) | 2.6. Administer orders | public | 2012-07-11 13:30 | 2012-12-10 13:17 |
Reporter | aggrosoft | Assigned To | |||
Priority | urgent | Severity | major | Reproducibility | always |
Status | resolved | Resolution | fixed | ||
Product Version | 4.6.2 revision 46646 | ||||
Target Version | 4.7.0_5.0.0_RC2 | Fixed in Version | 4.7.0_5.0.0_RC2 | ||
Summary | 0004239: Date of PDF Bill generation needs to be fixiated | ||||
Description | Currently when you generate a pdf invoice the oxbillnr is being stored, this fine so far. But you also need to store the date when you generated the invoice - if an invoice is generated this date needs to be stored. Otherwise you can end up with multiple invoices with the same number but a different date, this is not allowed by law (at least in germany). This might happen if you send one invoice to the customer and print one for your archive on different dates. | ||||
Steps To Reproduce | Generate an invoice today, do the same tomorrow - different dates rights besides the city. | ||||
Additional Information | Fix is easy: - Add new field to oxorder => oxbilldate - Add to myorder::genPDF() where billnr is being set if ( !$this->oxorder__oxbillnr->value ) { $this->oxorder__oxbillnr->setValue($this->getNextBillNum()); $oUtilsDate = oxUtilsDate::getInstance(); $this->oxorder__oxbilldate = new oxField( date( 'Y-m-d H:i:s', $oUtilsDate->getTime() ), oxField::T_RAW); $this->save(); } - Output this besides the city: // shop city $aOrderDate = explode( ' ', $this->oxorder__oxbilldate->value ); $sOrderDate = oxUtilsDate::getInstance()->formatDBDate( $aOrderDate[0]); $sText = $oShop->oxshops__oxcity->getRawValue().', '.$sOrderDate; | ||||
Tags | PDF Invoice | ||||
Theme | Both | ||||
Browser | All | ||||
PHP Version | any | ||||
Database Version | any | ||||