Ich habe auch ein Problem mit dem Rechnungsdatum, bin aber schon dabei es zu ändern. Wenn wer ein paar hilfreiche Tipps hat kann er sie mir gerne mitteilen.
Das Rechnungsdatum soll immer das Datum sein, an dem die Rechnung bezahlt worden ist, und nicht das aktuelle Datum. Speziell bei Vorrauskasse und wenn man die Rechnungen später noch einmal ausdruckt ist das sehr sinnvoll.
Auch macht es keinen Sinn bei Vorrauskasse auf der Rechnung “Zahlbar bis” drauf stehen zu haben.
habs geändert:
Dann ist Rechnungsdatum gleich Bezahldatum.
Rechnung:
~Zeile 481
Habs einfach geändert, da zahlbar bis nicht gebraucht wird:
(Originalzeilen besser nicht löschen sondern auskommentieren und diese Zeilen verwenden)
protected function _setPayUntilInfo( &$iStartPos )
{
//macht das "Bezahlbar bis" weg
$text = $this->_oData->translate( 'ORDER_OVERVIEW_PDF_PAYED' );
$this->font( 'Arial', '', 10 );
$this->text( 15, $iStartPos + 4, $text );
$iStartPos += 4;
}
~Zeile 913
// shop city Bezahldatum statt aktuellen Datum
$aPaymentDate = explode( ’ ‘, $this->oxorder__oxpaid->value );
$sPaymentDate = oxUtilsDate::getInstance()->formatDBDate( $aPaymentDate[0]);
$sText = $oShop->oxshops__oxcity->value.’, '.$sPaymentDate;
Lieferschein:
~Zeile 1039
// shops city Bezahldatum statt aktuellen Datum
$aPaymentDate = explode( ’ ‘, $this->oxorder__oxpaid->value );
$sPaymentDate = oxUtilsDate::getInstance()->formatDBDate( $aPaymentDate[0]);
$sText = $oShop->oxshops__oxcity->value.’, '.$sPaymentDate;
$oPdf->setFont( ‘Arial’, ‘’, 10 );
$oPdf->text( 195 - $oPdf->getStringWidth( $sText ), 95, $sText );
Dann ist Rechnungsdatum gleich dem Bezahldatum.
Anschließend noch den Text für ORDER_OVERVIEW_PDF_PAYED noch in basic/admin/language/ Dateien eintragen, sowas wie Rechnungsdatum entspricht Lieferdatum und Bezahldatum.
Im Footer BIC, IBAN, Mobilnummer, Steuernummer und PID einfügen
/*$oPdf->line( 15, 272, 195, 272 );*/
/* column 1 - company name, shop owner info, shop address */
$oPdf->setFont( 'Arial', 'B', 7 );
$oPdf->text( 15, 275, strip_tags( $oShop->oxshops__oxcompany->value ) );
$oPdf->setFont( 'Arial', '', 7 );
$oPdf->text( 15, 278, strip_tags( $oShop->oxshops__oxfname->value ).' '. strip_tags( $oShop->oxshops__oxlname->value ) );
$oPdf->text( 15, 281, strip_tags( $oShop->oxshops__oxstreet->value ) );
$oPdf->text( 15, 284, strip_tags( $oShop->oxshops__oxzip->value ).' '. strip_tags( $oShop->oxshops__oxcity->value ) );
$oPdf->text( 15, 287, '' ), strip_tags( $oShop->oxshops__oxcountry->value ) );
/* column 2 - phone, fax, url, email address */
$oPdf->text( 50, 275, $this->translate( 'ORDER_OVERVIEW_PDF_PHONE' ).strip_tags( $oShop->oxshops__oxtelefon->value ) );
$oPdf->text( 50, 278, $this->translate( 'ORDER_OVERVIEW_PDF_FAX' ).strip_tags( $oShop->oxshops__oxtelefax->value ) );
$oPdf->text( 50, 281, $this->translate( 'Email: ' ).strip_tags( $oShop->oxshops__oxorderemail->value ) );
$oPdf->text( 50, 284, $this->translate( 'Internet: ' ).strip_tags( $oShop->oxshops__oxurl->value ) );
// Hier kann man noch eine Mobilnummer einfügen
$oPdf->text( 50, 287, ‘’), $this->translate( ‘Mobil: +49 (170) 12345678’ ) );
/* column 3 - bank information */
$oPdf->text( 100, 275, strip_tags( $oShop->oxshops__oxbankname->value ) );
$oPdf->text( 100, 278, $this->translate( 'ORDER_OVERVIEW_PDF_ACCOUNTNR' ).strip_tags( $oShop->oxshops__oxbanknumber->value ) );
$oPdf->text( 100, 281, $this->translate( 'ORDER_OVERVIEW_PDF_BANKCODE' ).strip_tags( $oShop->oxshops__oxbankcode->value ) );
$oPdf->text( 100, 284, $this->translate('BIC: ' ).strip_tags( $oShop->oxshops__oxbiccode->value ) );
$oPdf->text( 100, 287, $this->translate('IBAN: ' ).strip_tags( $oShop->oxshops__oxibannumber->value ) );
/* column 4 - VAT information */
$oPdf->text( 145, 275, 'ESt.Nr.111/222/33333 Finanzamt XXX' );
$oPdf->text( 145, 278, $this->translate('UStID: ').strip_tags( $oShop->oxshops__oxvatnumber->value ) );
$oPdf->text( 145, 281, 'PID: kann hier noch stehen' );
$oPdf->text( 145, 284, '' );
$oPdf->text( 145, 287, '' );
}