mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: changing items quantity on hand with sales invoices and bills.
This commit is contained in:
@@ -251,6 +251,7 @@ export default class ItemsService implements IItemsService {
|
||||
const storedItem = await Item.query().insertAndFetch({
|
||||
...itemDTO,
|
||||
active: defaultTo(itemDTO.active, 1),
|
||||
quantityOnHand: itemDTO.type === 'inventory' ? 0 : null,
|
||||
});
|
||||
this.logger.info('[items] item inserted successfully.', {
|
||||
tenantId,
|
||||
|
||||
Reference in New Issue
Block a user