mirror of
https://github.com/frappe/books.git
synced 2025-01-09 09:50:27 +00:00
fix: set default quantity increment to 1 for barcode
This commit is contained in:
parent
6d0300ac1a
commit
59ba64b341
@ -87,7 +87,6 @@ export default defineComponent({
|
|||||||
})) as { name: string }[];
|
})) as { name: string }[];
|
||||||
|
|
||||||
const name = items?.[0]?.name;
|
const name = items?.[0]?.name;
|
||||||
console.log(name, 'name');
|
|
||||||
|
|
||||||
if (!name) {
|
if (!name) {
|
||||||
return this.error(this.t`Item with barcode ${barcode} not found.`);
|
return this.error(this.t`Item with barcode ${barcode} not found.`);
|
||||||
|
@ -554,7 +554,7 @@ export default defineComponent({
|
|||||||
await this.sinvDoc.append('items', {
|
await this.sinvDoc.append('items', {
|
||||||
rate: item.rate as Money,
|
rate: item.rate as Money,
|
||||||
item: item.name,
|
item: item.name,
|
||||||
quantity: quantity ? quantity : 0,
|
quantity: quantity ? quantity : 1,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (this.sinvDoc.priceList) {
|
if (this.sinvDoc.priceList) {
|
||||||
|
Loading…
Reference in New Issue
Block a user