2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 01:44:15 +00:00

fix: set default quantity increment to 1 for barcode

This commit is contained in:
AbleKSaju 2024-12-31 15:45:42 +05:30
parent 6d0300ac1a
commit 59ba64b341
2 changed files with 1 additions and 2 deletions

View File

@ -87,7 +87,6 @@ export default defineComponent({
})) as { name: string }[];
const name = items?.[0]?.name;
console.log(name, 'name');
if (!name) {
return this.error(this.t`Item with barcode ${barcode} not found.`);

View File

@ -554,7 +554,7 @@ export default defineComponent({
await this.sinvDoc.append('items', {
rate: item.rate as Money,
item: item.name,
quantity: quantity ? quantity : 0,
quantity: quantity ? quantity : 1,
});
if (this.sinvDoc.priceList) {