Implement tax handling for branches by adding tax percent to regions, updating product sell costs, and enhancing UI for tax summaries in BranchView
This commit is contained in:
@@ -30,6 +30,13 @@ RegionData.init({
|
||||
allowNull: true,
|
||||
defaultValue: {}
|
||||
}
|
||||
,
|
||||
taxPercent: {
|
||||
type: DataTypes.DECIMAL,
|
||||
allowNull: false,
|
||||
defaultValue: 7,
|
||||
field: 'tax_percent'
|
||||
}
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'RegionData',
|
||||
|
||||
@@ -16,6 +16,17 @@ ProductType.init({
|
||||
sellCost: {
|
||||
type: DataTypes.INTEGER,
|
||||
allowNull: false}
|
||||
,
|
||||
sellCostMinNeutral: {
|
||||
type: DataTypes.DECIMAL,
|
||||
allowNull: true,
|
||||
field: 'sell_cost_min_neutral'
|
||||
},
|
||||
sellCostMaxNeutral: {
|
||||
type: DataTypes.DECIMAL,
|
||||
allowNull: true,
|
||||
field: 'sell_cost_max_neutral'
|
||||
}
|
||||
}, {
|
||||
sequelize,
|
||||
modelName: 'ProductType',
|
||||
|
||||
Reference in New Issue
Block a user