var P_SUM = ["Summe:","Sum:","Todo:"]; var P_TOTAL = ["Total","Total","Total"]; var P_MWST = ["MwSt","Tax","IVA"]; var P_NETTO = ["Netto","Net","Neto"]; var P_BRUTTO = ["Brutto","Gross","Bruto"]; var P_ID = ["Id:","Id:","Id:"]; var P_TABLE = ["Tisch:","Table:","Mesa:"]; var P_WAITER = ["Es bediente Sie:", "Waiter:", "Camarero:"]; var P_NO = ["Anz.", "No.", "Nú."]; var P_DESCR = ["Beschreibung","Description","Descripción"]; var P_PRICE = ["Preis","Price","Precio"]; function createReceiptFooterFromDbTaxes(lang, billid, companyInfo,sum,taxes,decPoint,sn,uid,version,systemid) { var priceStyle = 'style="border: solid black 0px;padding: 3px;text-align:right;vertical-align:bottom;"'; var infoStyle = 'style="text-align:center;vertical-align:bottom;"'; var emptyLine = ' '; var footer = emptyLine; footer += '' + P_MWST[lang] + '% ' + P_MWST[lang] + '' + P_NETTO[lang] + '' + P_BRUTTO[lang] + ''; for (var i=0;i" + tax.mwst.replace(".",decPoint); footer += "" + tax.netto.replace(".",decPoint); footer += "" + tax.brutto.replace(".",decPoint); footer += ""; } footer += emptyLine; footer += '   ' + P_SUM[lang] + '' + sum.toFixed(2).replace(".",decPoint) + ''; footer += emptyLine; footer += '
 
'; footer += toHtml(companyInfo).replace(/(?:\r\n|\r|\n)/g, '
'); footer += '

'; footer += "
"; footer += "Kassen-ID: " + toHtml(systemid).replace(/(?:\r\n|\r|\n)/g, '
') + ""; footer += "Bonerstellung mit Version: " + toHtml(version).replace(/(?:\r\n|\r|\n)/g, '
') + ""; return footer; } /** * Generate the product part of a receipt on base of html table array elements * * @param decPoint * @param entryListForReceipt * @returns {String} */ function generateProdPart(decPoint,entryListForReceipt) { var index=0; tablecontent = ''; for (index=0;index