WIP: ecommerce

This commit is contained in:
2025-10-04 10:40:28 +00:00
parent 601b31439c
commit e6d9326872
6 changed files with 70 additions and 16 deletions

View File

@@ -109,6 +109,12 @@ function blockUI($msg) {
function copyToClipboard(text) {
navigator.clipboard.writeText(text);
}
function openDetails(id) {
window.open("index.php?module=EcmInvoiceOuts&action=ecommerce&apilo_details="+id, "_blank");
function openDetails(id, origin) {
window.console.log(origin);
if (origin.startsWith('apilo')) {
window.open("index.php?module=EcmInvoiceOuts&action=ecommerce&apilo_details="+id, "_blank");
} else {
window.open("index.php?module=EcmInvoiceOuts&action=ecommerce&baselinker_details="+id, "_blank");
}
}