IRPTeam / eFaturaXSLT

XSLT şablonu eFatura ve eArşiv oluşturmak için. Basitleştirilmiş stillerle, şirket imzası ve logosu ekleyebilme özelliği. Ayrıca yazıyla toplam tutar da var.
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Logo #1

Open erer2727 opened 9 months ago

erer2727 commented 9 months ago

Merhaba logo ekleyemedim yardımcı olurmusunuz lütfen.

erer2727 commented 9 months ago

Ayrıca Banka Iban Bilgilerimizi eklermisiniz?

DitriXNew commented 9 months ago

Hi. You can fill 3 pictures in this fields: .CompanyLogo .Sign .GIBLogo

If you want fill with empty image, you can do like this:

.Sign {
    content: url("data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=");
    width: 120px;
    height: 120px;
}

In content you have to fill base64 you picture. data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs= - this is just empty pixel

If you want to fill with your picture, then you need to get base64 your file. You can do it on this site https://base64.guru/converter/encode/image Just set the URL or get it from a local file, select the type as 'URI,' and you'll get a base64 preview of your picture: image

DitriXNew commented 9 months ago

About bank info - you can add it in the Note field in your XML (UBL) file. The current template will add it at the bottom. But, if you want to add any additional data at the bottom, you can find table with id="add_additional_text," and you will see this tag:

<tr>
  <td>
    <div id="numberInputToWord"/>
  </td>
</tr>

Just copy it, and change:

<tr>
  <td>
    Some my important text
        <br/>
        New line of important test.
  </td>
</tr>
DitriXNew commented 9 months ago

You can check the result on this site: https://xsltfiddle.liberty-development.net/. Place your XML in the left field and your XSLT in the right field, then check the result. image However, the current service does not execute scripts, so the "Number to Word" field will be empty. To see this, simply save the result as an *.html file and open it in your browser.