add default account to frontend
This commit is contained in:
@@ -27,6 +27,7 @@ function ProductSell(o){
|
||||
user_cart: [],
|
||||
discounts: [],
|
||||
customer_cart: [],
|
||||
id_account: null,
|
||||
|
||||
};
|
||||
|
||||
@@ -275,7 +276,7 @@ function ProductSell(o){
|
||||
table.find('.product-price').html('-');
|
||||
table.find('.product-sale-price').html('-');
|
||||
$('#productsaleform-id_product').val('');
|
||||
$('#productsaleform-id_account').val('');
|
||||
$('#productsaleform-id_account').val( app.defaults.id_account ? app.defaults.id_account : '');
|
||||
$("#productsaleform-count").val(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user