|
|
|
@ -315,11 +315,12 @@ function loadReceiptHTMLIntoPopup(receiptid) {
|
|
|
|
|
accountkey: getStorage("accountkey"),
|
|
|
|
|
receiptid: receiptid
|
|
|
|
|
}, function (success) {
|
|
|
|
|
app.dialog.close();
|
|
|
|
|
if (success.status == "OK") {
|
|
|
|
|
$('#receiptvieweriframe').attr("src", "data:text/html," + encodeURIComponent(success.receipt.html));
|
|
|
|
|
$('#receiptvieweriframe').attr("src", "data:text/html;base64," + btoa(success.receipt.html));
|
|
|
|
|
app.popup.open("#receiptViewerPopup");
|
|
|
|
|
app.dialog.close();
|
|
|
|
|
} else {
|
|
|
|
|
app.dialog.close();
|
|
|
|
|
app.dialog.alert(success.msg, "Error");
|
|
|
|
|
sendErrorReport("Receipts", "Loading receipt", success.msg);
|
|
|
|
|
}
|
|
|
|
|