From decha@orange.pl Thu Aug 27 13:45:30 2009 From: Dominik Chenczke To: lms@lists.lms.org.pl Subject: Re: [lms] %current_month - sam =?utf-8?q?miesi=C4=85c?= & Seller: Date: Thu, 27 Aug 2009 13:45:28 +0200 Message-ID: <4A9671D8.5060905@orange.pl> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1720569395225295437==" --===============1720569395225295437== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Pozdrawiam Dominik Chenczke Message: 6 Date: Thu, 27 Aug 2009 08:22:08 +0200 From: "A.L.E.C" To: lista u=C5=BCytkownik=C3=B3w LMS Subject: Re: [lms] %current_month - sam miesi=C4=85c Message-ID: <4A962610.3000900(a)alec.pl> Content-Type: text/plain; charset=3DISO-8859-2; format=3Dflowed Dominik Chenczke wrote: > > Panowie czy da sie w zamiast > > > > comment =3D abonament za %current_month > > czyli *abonametn za 2009/08/01 - 2009/08/31* > > > > =C5=BCeby wy=C5=9Bwietla=C5=82o: *abonament za sierpe=C5=84 * > Jest zmienna %current_period daj=C4=85ca miesi=C4=85c w formie MM/YYYY. ale nie jakby by=C5=82oby sierpie=C5=84 2009 - to by=C5=82a by bajka > > problem ma bo w dokumentach/fakturach > > nie korzysta z $seller > > sprzedawca/stopka/naglowek > > > > gdzie szunakc -przed aktualizacja dzialo ale dopiero teraz zauwa=C5=BCy= =C5=82em > > *Wersja LMS: * 1.11.8 Belus (1.981/1.23) >>Konfiguracja -> Firmy (Oddzia=C5=82y) - Aleksander 'A.L.E.C' Machniak http://alec.pl gg:2275252 LAN Management System Developer http://lms.org.pl Roundcube Webmail Project Developer http://roundcube.net oczywiscie ze wszystko wpisane poprawnie (w pdf tez nie dziala) kawalek kodu PDF function invoice_seller($x,$y). { global $pdf, $invoice; $font_size=3D10; =20 $y=3D$y-text_align_left($x,$y,$font_size,''.iconv("UTF-8","ISO-8859-2//TRA= NSLIT",trans('Seller:')).''); $tmp =3D iconv("UTF-8","ISO-8859-2//TRANSLIT",=20 $invoice['division_header']); $tmp =3D preg_split('/\r?\n/', $tmp); foreach ($tmp as $line) $y=3D$y-text_align_left($x,$y,$font_size,$line); return $y; HTML
{t}Seller:{/t}

{$invoice.division_header|replace:"\n":"
"}

dzia=C5=82a poprawnie >> {t}Purchaser:{/t}

{$invoice.name}
{$invoice.address}
{$invoice.zip} {$invoice.city}
{if $invoice.ten neq ""}{t}TEN:{/t}=20 {$invoice.ten}
{elseif $invoice.ssn neq ""}{t}SSN:{/t}=20 {$invoice.ssn}
{/if}
=20 probowalem tez templates/invoice.html [----] 0 L:[ 44+ 1 45/439] *(1627/13561b)=3D - 45 0x2D <--><------><------>{$invoice.division_header|replace:"\n":"
"} ^ <---><------><------>{$invoice.ds.inv_header|replace:"\n":"
"} ^ <------><------><------>{$invoice.division_address|replace:"\n":"
"} ^ i nic nie wyswietla !DSPAM:4a9671da297591804284693! --===============1720569395225295437==--