feat: add item & inventory adjustment ability.

This commit is contained in:
elforjani13
2021-11-23 19:29:58 +02:00
parent e5d02043ad
commit fca4dedeac
7 changed files with 124 additions and 47 deletions

View File

@@ -1,17 +1,80 @@
export const AbilitySubject = {
Item: 'Item',
InventoryAdjustment: 'InventoryAdjustment',
Inventory_Adjustment: 'Inventory_Adjustment',
Estimate: 'Estimate',
Invoice: 'Invoice',
Receipt: 'Receipt',
PaymentReceive: 'PaymentReceive',
Bill: 'Bill',
PaymentMade: 'PaymentMade',
Customer: 'Customer',
Vendor: 'Vendor',
};
export const ItemAbility = {
export const Item_Abilities = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const InventoryAdjustment = {
View: 'view',
export const Inventory_Adjustment_Abilities = {
Create: 'create',
View: 'view',
Delete: 'delete',
};
export const SaleEstimate = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const SaleInvoice = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
BadDebt: 'bad-debt',
};
export const SaleReceipt = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const PaymentReceive = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const Bill = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const PaymentMade = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const CustomerAbilities = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};
export const VendorAbilities = {
View: 'view',
Create: 'create',
Edit: 'edit',
Delete: 'delete',
};