fix: Date format in sales/purchases APIs.

fix: Algorithm FIFO cost calculate method.
This commit is contained in:
Ahmed Bouhuolia
2020-08-19 00:13:53 +02:00
parent a202a21df5
commit 52d01b4ed8
21 changed files with 291 additions and 133 deletions

View File

@@ -12,7 +12,7 @@ export default class InventoryTransaction extends TenantModel {
/**
* Model timestamps.
*/
static get timestamps() {
get timestamps() {
return ['createdAt', 'updatedAt'];
}

View File

@@ -1,5 +1,6 @@
import Customer from './Customer';
import Vendor from './Vendor';
import Option from './Option';
import SaleEstimate from './SaleEstimate';
import SaleEstimateEntry from './SaleEstimateEntry';
import SaleReceipt from './SaleReceipt';
@@ -44,4 +45,5 @@ export {
InventoryTransaction,
InventoryLotCostTracker,
AccountType,
Option,
};