|
ODBIORCA
|
';
if($focus->parent_shipping_address_name!=''){
$content.= ''.$labels['LBL_PDF_CONTENT_DELIVERY'].'';
}
$content.= ' |
|
|
|
' . $focus->parent_name . '
|
'.$a->parent_shipping_address_name.'
|
|
|
|
' . $a->register_address_street . '
|
' . $a->parent_shipping_address_street . '
|
';
$content.= ' |
|
|
'. $a->register_address_postalcode . ' ' . $a->register_address_city;
if (!is_null($focus->parent_address_country) & $focus->parent_address_country!='')
$content.=', '.$a->register_address_country;
$content.='
|
'. $focus->parent_shipping_address_postalcode . ' ' . $focus->parent_shipping_address_city;
if (!is_null($focus->parent_shipping_address_country) & $focus->parent_shipping_address_country!='')
$content.=', '.$focus->parent_shipping_address_country;
$content.='
|
|
|
';
$content.='
| NIP: '.$a->to_vatid;
$content.='
| ';
$content.='
';
if (!is_null($focus->parent_shipping_nip) && $focus->parent_shipping_nip) {
$content.=$labels['LBL_PDF_CONTENT_NIP'].' '.$focus->parent_shipping_nip;
$nip = true;
}
if (!is_null($focus->parent_shipping_iln) && $focus->parent_shipping_iln) {
if ($nip) $content.' '; $nip = false;
$content.=$labels['LBL_PDF_CONTENT_ILN'].' '.$focus->parent_shipping_iln;
}
$content.='
|
|
|
';
$content.='
';
if($EcmSysInfo->getDatabaseName()=='preDb_45ab7160e7af49269e17044eaed9e0ba'){
$content='';
}
$content .= '
Data dokumentu: '.$labels['LBL_PDF_CONTENT_SELL_DATE'].' |
' . date('d.m.Y') . ' ' . $focus->sell_date . ' |
';
if($focus->order_no!=''){
$content.=$labels['LBL_PDF_CONTENT_PARENT_DOCUMENT_NO'].': ';
}
$content.=' |
';
if($focus->order_no!=''){
$content.='' . $focus->order_no.' ';
}
$content.=' |
';
if($EcmSysInfo->getDatabaseName()=='preDb_45ab7160e7af49269e17044eaed9e0ba'){
$content='Wezwanie do zapłaty
Wzywamy do uregulowania w terminie 7 dni od daty otrzymania niniejszego wezwania do zapłaty niżej wymienionych należności w łącznej kwocie
'.format_number($focus->interest).' zł
Należność należy przekazać na konto RAIFFEISEN BANK POLSKA S.A.
nr konta 42 1750 0009 0000 0000 2627 2699
';
}
// start items table
$columns = array ();
$columns ['position'] = array (
'field' => array (
'position'
),
'label' => 'Lp.',
'align' => 'center'
);
$columns ['name'] = array (
'field' => array (
'name',
),
'label' => 'Nazwa',
'align' => 'left'
);
$columns ['date_doc'] = array (
'field' => array (
'date_doc',
),
'label' => 'Data dokumentu',
'align' => 'right'
);
$columns ['total2'] = array (
'field' => array (
'paid'
),
'label' => 'Kwota',
'align' => 'right'
);
$columns ['qty'] = array (
'field' => array (
'payment_date',
),
'label' => 'Termin płatności',
'align' => 'right'
);
$columns ['total_vat'] = array (
'field' => array (
'days'
),
'label' => 'Dni po
Terminie',
'align' => 'right'
);
$columns ['total'] = array (
'field' => array (
'total'
),
'label' => 'Odsetki
na dziś',
'align' => 'right'
);
// set widths
$totals = array ();
$columns ['position'] ['width'] = '5';
$columns ['name'] ['width'] = '31';
$columns ['date_doc'] ['width'] = '10';
$columns ['total2'] ['width'] = '10';
$columns ['qty'] ['width'] = '10';
$columns ['total_vat'] ['width'] = '10';
$columns ['total'] ['width'] = '10';
// rysujemy :)
$content .= '
';
foreach ( $columns as $col ) {
$content .= '
| ' . $col ['label'] . ' |
';
}
$content .= '
';
$counter=1;
foreach ( $positions as $pos ) {
$content .= '';
foreach ( $columns as $col ) {
$content .= '';
foreach ( $col ['field'] as $f ) {
if (! $pos [$f] || $pos [$f] == '')
$pos [$f] = '-';
$content .= $pos [$f] . ' ';
}
$content .= ' | ';
}
$content .= '
';
}
$content .= '
|
tr style="border: 0 solid black;"> |
Razem |
'.format_number($focus->interest).' |
|
|
'.format_number($focus->total).' | ';
$content .= '
';
if($EcmSysInfo->getDatabaseName()=='preDb_45ab7160e7af49269e17044eaed9e0ba'){
$content.=' W przypadku nie uregulowania należności w podanym wyżej terminie sprawa zostanie automatycznie skierowana na drogę sądową i wpisana do KRD
';
$content.='
|
|
............................................. Podpis
|
';
}
// summary table
// get currency symbol
$c = new Currency ();
$c->retrieve ( $focus->currency_id );
$symbol = $c->symbol;
unset ( $c );
$content .= '
';
//echo $content; die();