ORKESTRA

ORKESTRA

  orkestra orkestra.com.tr
  Sohbet   İndirme Merkezi

E-Fatura Betik Kodları ( Orkestra Scripts )

İş Yerine Göre Faturada Adres Kaşe Logo Değişikliği İçin Betik


String isyeri=$F{branch}+ "";
Console.println("isyeri" + isyeri);

if ($F{branch} ==2){
    ubl.addAttachment("KASE","KASE","image/jpeg",loadPublicImage(5));
    ubl.setUblValue("AccountingSupplierParty/Party/PartyName/$/Name","value","FİRMANIN GÖRÜNMESİ İSTENİLEN ADI");
    ubl.addDocumentReference("sube","sube",$F{date_},"FİRMANIN ŞUBESİ");
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/StreetName", "value", "MAHALLE CADDE ADI");
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/BuildingNumber", "value", "KAPI NUMARASI");   
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/CitySubdivisionName", "value", "İLÇE");
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/CityName", "value", "İL BİLGİSİ");
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/Country/IdentificationCode", "value", "TR");
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/Country/Name", "value", "TÜRKİYE");
    ubl.setUblValue("AccountingSupplierParty/Party/PostalAddress/PostalZone", "value", "06797");
    ubl.setUblValue("AccountingSupplierParty/Party/Contact/Telephone","value","0(312) 111 11 11");
    ubl.setUblValue("AccountingSupplierParty/Party/Contact/Telefax","value","0(312) 222 22 22");
    ubl.setSupplierIdentification("MERSISNO","0-1234-3756-123456");
    ubl.addDocumentReference("epdk","epdk",$F{date_},"BAY/450-418/123456");
    ubl.addDocumentReference("merkez","merkez",$F{date_},"ANKARA");
    ubl.addDocumentReference("banka1","ÇALIŞMA BANKASI",$F{date_},"TR74 1234 1234 1234 1234 0222 69");
    ubl.addDocumentReference("banka1_hesap","ÇALIŞMA BANKASI",$F{date_},"4396-123456");
    
}

String ambar=$F{sourceindex}+"";

if ($F{sourceindex} ==0){
    ubl.addDocumentReference("ambar","ambar",$F{date_},"1. Ambar");

}else if($F{sourceindex} ==1){


    ubl.addDocumentReference("ambar","ambar",$F{date_},"2. Ambar");
}