add hidden account, cart insert/delete
add hidden account support add delete/payout buttons to carts add backend product sales with pdf export add frontend product sales with pdf export add frontend ticket sales with pdf export
This commit is contained in:
@@ -30,6 +30,8 @@ function ProductSell(o){
|
||||
customer_cart: [],
|
||||
id_account: null,
|
||||
products : [],
|
||||
url_delete_transaction : '',
|
||||
url_pay_transaction : '',
|
||||
|
||||
};
|
||||
|
||||
@@ -55,6 +57,13 @@ function ProductSell(o){
|
||||
// addDocumentKeypressedListener();
|
||||
|
||||
initAutocomplete();
|
||||
disalbeMousewheelSpinOnNumberInput();
|
||||
}
|
||||
|
||||
function disalbeMousewheelSpinOnNumberInput(){
|
||||
$(':input[type=number]').on('mousewheel', function(e){
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -199,7 +208,7 @@ function ProductSell(o){
|
||||
if ( event.which == 13 ) {
|
||||
event.preventDefault();
|
||||
event.stopImmediatePropagation();
|
||||
$('#productsaleform-id_currency').focus();
|
||||
submitSellAndAppend();
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -477,12 +486,16 @@ function ProductSell(o){
|
||||
|
||||
function createUserCartTable(){
|
||||
$(app.defaults.selector_user_cart).transferList({
|
||||
'transfers' : app.defaults.user_cart
|
||||
'transfers' : app.defaults.user_cart,
|
||||
'url_delete' : app.defaults.url_delete_transaction,
|
||||
'url_pay' : app.defaults.url_pay_transaction,
|
||||
});
|
||||
}
|
||||
function createCustomerCartTable(){
|
||||
$(app.defaults.selector_customer_cart).transferList({
|
||||
'transfers' : app.defaults.customer_cart
|
||||
'transfers' : app.defaults.customer_cart,
|
||||
'url_delete' : app.defaults.url_delete_transaction,
|
||||
'url_pay' : app.defaults.url_pay_transaction,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user