mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 23:00:34 +00:00
fix: BIG-213 Landed cost checkbox disable with inventory items not service in purchase invoice.
This commit is contained in:
@@ -65,8 +65,12 @@ export const ensureEntriesHaveEmptyLine = R.curry((defaultEntry, entries) => {
|
|||||||
return entries;
|
return entries;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Disable landed cost checkbox once the item type is not service or non-inventorty.
|
||||||
|
* @returns {boolean}
|
||||||
|
*/
|
||||||
export const isLandedCostDisabled = (item) =>
|
export const isLandedCostDisabled = (item) =>
|
||||||
['service', 'non-inventory'].indexOf(item.type) !== -1;
|
['service', 'non-inventory'].indexOf(item.type) === -1;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle fetch item row details and retrieves the new table row.
|
* Handle fetch item row details and retrieves the new table row.
|
||||||
|
|||||||
Reference in New Issue
Block a user