Beispiel #1
0
                 $lista .= 'Umowa';
                 break;
             case 'i':
                 $lista .= 'Inne zobowiązanie';
                 break;
         }
         $lista .= ' nr ' . $FRN['frn_number_c'] . ' z dnia ' . month_pl(date("d M Y", $FRN['dzien'])) . ' r., na kwotę ' . number_format($FRN['frn_amount_f'], 2, ",", " ") . ' ' . ($FRN['frn_currency_e'] == 'PLN' ? 'zł' : $FRN['frn_currency_e']) . ', ';
         $lista .= 'termin płatności upłynął ' . month_pl(date("d M Y", $FRN['termin'])) . ' r.';
         $lista2 = $lista;
         $lista .= $FRN['frn_amount_left_f'] == $FRN['frn_amount_f'] ? '' : '; pozostało do zapłaty ' . number_format($FRN['frn_amount_left_f'], 2, ",", " ") . ' ' . ($FRN['frn_currency_e'] == 'PLN' ? 'zł' : $FRN['frn_currency_e']);
         $lista_faktur[] = toRTF($lista);
         $lista_faktur1[] = toRTF($lista2);
         $lista_faktur_2[] = toRTF(number_format($FRN['frn_amount_left_f'], 2, ",", " ") . ' ' . ($FRN['frn_currency_e'] == 'PLN' ? 'zł' : $FRN['frn_currency_e']));
         $lista_faktur_3[] = toRTF("- od kwoty " . number_format($FRN['frn_amount_f'], 2, ",", " ") . ' ' . ($FRN['frn_currency_e'] == 'PLN' ? 'zł' : $FRN['frn_currency_e']));
         $lista_faktur_daty[] = toRTF(month_pl(date("d M Y", $FRN['termin'] + 86400)) . " roku");
         $lista_faktur_daty2[] = toRTF(" od dnia " . month_pl(date("d M Y", $FRN['termin'] + 86400)) . " roku do dnia zapłaty");
     }
     $html = str_replace("[lista_faktur]", implode("\\par ", $lista_faktur), $html);
     $html = str_replace("[lista_faktur1]", implode("\\par ", $lista_faktur1), $html);
     $html = str_replace("[lista_faktur_2]", implode("\\par ", $lista_faktur_2), $html);
     $html = str_replace("[lista_faktur_pow10]", implode("\\par ", $lista_faktur_3), $html);
     $html = str_replace("[lista_faktur_daty_pow10]", implode("\\par ", $lista_faktur_daty2), $html);
     $html = str_replace("[lista_faktur_daty]", implode("\\par ", $lista_faktur_daty), $html);
     if (count($frns) > 1) {
         $html = str_replace("[dni]", "dniach od {$pierwsza_data} roku do dnia {$ostatnia_data} roku", $html);
     } else {
         $html = str_replace("[dni]", "dniu {$pierwsza_data}", $html);
     }
 }
 $html = str_replace("[prowizja]", $C['ca_commission_f'], $html);
 $html = str_replace("[prowizja_odsetki]", $C['ca_interest_commission_f'], $html);
Beispiel #2
0
function data_nakazu2($id)
{
    global $db;
    $D = $db->GetRow('SELECT *, UNIX_TIMESTAMP(d_date_d) as ddate FROM wind_dates WHERE d_case_id_k = ' . $id . ' ');
    if ($D['ddate'] > 0) {
        $txt = month_pl(date("d M Y", $D['ddate']));
    }
    return $txt;
}