|
|
|
Example file *.nxm_up_tpl |
|
|
<?xml version="1.0" encoding="utf-8"?> <assembly id="nxm.dist.sales_documents.standard.pl"> <!-- list referenced assemblies --> <reference>nxm.biz.data</reference> <!-- components existing in this assembly --> <components> <!-- import header from other template --> <import id="header" source="standard_blocks/company_header"></import> <define id="sales_invoice"> <content> <document> <!-- main and only section --> <section width="21.0" height="29.7"> <table style="border-0"> <columns> <column width="8.0"></column> <column width="11.0"></column> </columns> <row> <cell> <inject source="seller_address" input-mapping="this=this.seller" output-mapping="this=this.seller" /> </cell> <cell> <image source="https://lakikwiatowe.pl/images/galeria_klientow/Wojtek%20Gabrychowicz%203.jpg"></image> </cell> </row> </table> <paragraph style="text-center"> <text style="head_title">FAKTURA VAT</text> <space count="2"/> <text style="head_title" input="document_code"></text> </paragraph> <table style="normal;border-0;przestrzen-2"> <columns> <column width="9.5"></column> <column width="9.5"></column> </columns> <row> <cell style="border-top"> <table style="border-0;przestrzen-2"> <columns> <column width="5.5"></column> <column width="4.0"></column> </columns> <row> <cell> <text style="bold">Data wystawienia:</text> </cell> <cell style="text-right"> <text input="issue_date" output="InvoiceDate"></text> </cell> </row> <row> <cell> <text style="bold">Miejsce wystawienia:</text> </cell> <cell style="text-right"> <text input="this.seller.address.locality"></text> </cell> </row> <row> <cell> <text style="bold">Data dostawy/wykonania usługi:</text> </cell> <cell style="text-right"> <text style="text-right" input="issue_date" output="InvoiceDate"></text> </cell> </row> <row style="border-top"> <cell> <text style="bold">Termin płatności:</text> </cell> <cell style="text-right"> <text style="text-right">9999-01-01</text> </cell> </row> <row> <cell> <text style="bold">Do zapłaty:</text> </cell> <cell style="text-right"> <text style="text-right">999 999,99</text> </cell> </row> <row> <cell> <text style="bold">Waluta:</text> </cell> <cell style="text-right"> <text style="text-right">PLN</text> </cell> </row> <row> <cell> <text style="bold">Sposób zapłaty:</text> </cell> <cell style="text-right"> <text style="text-right">GOTÓWKA</text> <paragraph style="text-right"> <text style="text-right"> TEST</text> </paragraph> </cell> </row> <row> <cell> <text style="bold">Mechanizm podzielonej płatności</text> </cell> <cell style="text-right"> <text style="text-right">NIE</text> </cell> </row> <row> <cell colspan="2"> <paragraph style="text-left"> <text style="bold">Abc bank</text> <space/> <text style="text-right">00 0000 0000 0000 0000 0000 0000</text> </paragraph> </cell> </row> <row> <cell style="border-top"> <text style="bold">Zamówienie nr:</text> </cell> <cell style="border-top;text-right"> <text>123456789</text> </cell> </row> <row> <cell> <text style="bold">Data zamówienia:</text> </cell> <cell style="text-right"> <text>2020-12-31</text> </cell> </row> </table> </cell> <cell style="przestrzen-2;border-left" padding-left="0.4"> <table style="border-0"> <columns> <column width="5.5"></column> <column width="4.0"></column> </columns> <row style="border-top"> <cell> <text style="bold">Nabywca:</text> </cell> <cell> <paragraph style="text-right"> <text style="text-right" input="this.buyer.name" output="this.buyer.name"></text> </paragraph> </cell> </row> <row> <cell> <text style="bold">Adres:</text> </cell> <cell> <paragraph style="text-right"> <text input="this.buyer.address.street"></text> <space/> <text input="this.buyer.address.building"></text> <text> / </text> <text input="this.buyer.address.apartment"></text> </paragraph> <paragraph style="text-right"> <text style="text-right" input="this.buyer.address.locality" output="this.buyer.address.locality"></text> </paragraph> </cell> </row> <row> <cell> <text style="bold">NIP:</text> </cell> <cell> <paragraph style="text-right"> <text input="this.buyer.taxid" output="this.buyer.taxid"></text> </paragraph> </cell> <br/> </row> <row> <cell> <text style="bold">Nr klienta:</text> </cell> <cell> <paragraph style="text-right"> <text>123456789</text> </paragraph> </cell> <br/> </row> <row> <cell> <text style="bold">Osoba kontaktowa:</text> </cell> <cell> <paragraph style="text-right"> <text>Jak Kowalski</text> </paragraph> </cell> <br/> </row> <row> <cell> <text style="bold">Tel.:</text> </cell> <cell> <paragraph style="text-right"> <text>+48 123 45 45</text> </paragraph> </cell> <br/> </row> <row> <cell style="border-top"> <text style="bold">Odbiorca:</text> </cell> <cell style="border-top"> <paragraph style="text-right"> <text>Przykładowy spółka s.c.</text> </paragraph> </cell> </row> <row> <cell> <text style="bold">Adres:</text> </cell> <cell> <paragraph style="text-right"> <text>asasasasasaas</text> </paragraph> <paragraph style="text-right"> <text style="text-right" input="this.buyer.address.locality" output="this.buyer.address.locality"></text> </paragraph> </cell> </row> <row> <cell> <text style="bold">Osoba kontaktowa:</text> </cell> <cell> <paragraph style="text-right"> <text>Jan Kowalski</text> </paragraph> </cell> </row> <row> <cell> <text style="bold">Tel.:</text> </cell> <cell> <paragraph style="text-right"> <text>+48 123 45 45</text> </paragraph> </cell> <br/> </row> </table> </cell> </row> </table> <paragraph style="text-center"> <inject source="product_list" /> </paragraph> <paragraph> <space/> </paragraph> <table style="details"> <row> <cell> <text style="heading2">Uwagi do faktury:</text> <br/> <text input="this.notes" /> </cell> </row> </table> </section> </document> </content> </define> <!-- define seller address block component --> <define id="seller_address"> <content> <paragraph style="normal"> <text input="this.name" style="bold"></text> <br/> <br/> <text style="bold">NIP: </text> <text input="this.taxid" style="bold"></text> <br/> <text>ul. </text> <text input="this.address.street"></text> <space/> <text input="this.address.building"></text> <space/> <text>|</text> <space/> <text input="this.address.zipcode"></text> <space/> <text input="this.address.locality"></text> <br/> <text>tel. </text> <text input="this.address.tel"></text> <space/> <text>|</text> <space/> <text>e-mail: </text> <text input="this.address.email"></text> <br/> <text>Adress www:</text> <space/> <text input="this.address.www"></text> <br/> <text>Osoba kontaktowa:</text> <space/> <text input="this.address.contact"></text> </paragraph> </content> </define> <!-- define party address block component --> <define id="party_address"> <content> <paragraph> <text input="this.name"></text> <br/> <text input="this.address.street"></text> <space/> <text input="this.address.building"></text> <br/> <text input="this.address.zipcode"></text> <space/> <text input="this.address.locality"></text> <br/> <container style="heading3"> <text>NIP</text> <space/> <text input="this.taxid"></text> </container> </paragraph> </content> </define> <!-- define street address --> <define id="street_address"> <content> <paragraph> <text input="this.address.street"></text> <space/> <text input="this.address.building"></text> <text> / </text> <text input="this.address.apartment"></text> </paragraph> </content> </define> <!-- define product list block component --> <define id="product_list"> <content> <table style="details;border-1;lista-towarow"> <columns> <column width="1.0"></column> <column width="4.0"></column> <column width="1.5"></column> <column width="1.0"></column> <column width="2.0"></column> <column width="1.0"></column> <column width="2.0"></column> <column width="1.0"></column> <column width="2.5"></column> <column width="3.0"></column> </columns> <header style="table_header"> <row> <cell> <text>L.p.</text> </cell> <cell> <text>Nazwa towaru</text> </cell> <cell> <text>Ilość</text> </cell> <cell> <text>J.m.</text> </cell> <cell> <text>Cena netto:</text> </cell> <cell> <text>VAT:</text> </cell> <cell> <text>Wartość VAT:</text> </cell> <cell> <text>Rabat:</text> </cell> <cell> <text>Wartość netto:</text> </cell> <cell> <text>Wartość brutto:</text> </cell> </row> </header> <row> <cell colspan="10" font_size="2.0"></cell> </row> <repeater input="lines"> <row> <cell> <text input="lp"></text> </cell> <cell> <text input="seller_name"></text> </cell> <cell> <text input="quantity"></text> </cell> <cell> <text input="unit"></text> </cell> <cell> <text input="netto"></text> </cell> <cell> <text input="tax"></text> </cell> <cell> <text input="netto_price"></text> </cell> <cell> <text input="netto_price"></text> </cell> <cell> <text input="netto_price"></text> </cell> <cell> <text input="gross"></text> </cell> </row> </repeater> </table> </content> </define> </components> </assembly> |
|
|
|
|
|
|
|