Fix búsqueda de producto por nombre en el PoS y herecian deimpuesto por categoría
This commit is contained in:
parent
932fe0fd45
commit
c3049046df
2 changed files with 12 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
|||
db.include({
|
||||
|
||||
_product_search_string: function(product){
|
||||
var str = product.name;
|
||||
var str = product.display_name;
|
||||
if(product.default_code){
|
||||
str += '|' + product.default_code;
|
||||
}
|
||||
|
@ -18,7 +18,16 @@
|
|||
if(product.editorial){
|
||||
str += '|' + product.editorial;
|
||||
}
|
||||
str = '' + product.id + ':' + str.replace(':','') + '\n';
|
||||
str += '|' + product.description;
|
||||
/*
|
||||
if (product.description) {
|
||||
str += '|' + product.description;
|
||||
}
|
||||
if (product.description_sale) {
|
||||
str += '|' + product.description_sale;
|
||||
}
|
||||
*/
|
||||
str = product.id + ':' + str.replace(':','') + '\n';
|
||||
return str;
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue