mirror of
https://github.com/frappe/books.git
synced 2024-11-08 14:50:56 +00:00
feat: update types for pricing rule
This commit is contained in:
parent
5efdd9fbc6
commit
33f82f8eae
6
models/baseModels/Invoice/types.ts
Normal file
6
models/baseModels/Invoice/types.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import { PricingRule } from '../PricingRule/PricingRule';
|
||||
|
||||
export interface ApplicablePricingRules {
|
||||
applyOnItem: string;
|
||||
pricingRule: PricingRule;
|
||||
}
|
58
models/baseModels/types.ts
Normal file
58
models/baseModels/types.ts
Normal file
@ -0,0 +1,58 @@
|
||||
export type InvoiceStatus = 'Draft' | 'Saved' | 'Unpaid' | 'Cancelled' | 'Paid' | 'Return' | 'ReturnIssued';
|
||||
export enum ModelNameEnum {
|
||||
Account = 'Account',
|
||||
AccountingLedgerEntry = 'AccountingLedgerEntry',
|
||||
AccountingSettings = 'AccountingSettings',
|
||||
Address = 'Address',
|
||||
Batch= 'Batch',
|
||||
Color = 'Color',
|
||||
Currency = 'Currency',
|
||||
GetStarted = 'GetStarted',
|
||||
Defaults = 'Defaults',
|
||||
Item = 'Item',
|
||||
ItemPrice = 'ItemPrice',
|
||||
UOM = 'UOM',
|
||||
UOMConversionItem = 'UOMConversionItem',
|
||||
JournalEntry = 'JournalEntry',
|
||||
JournalEntryAccount = 'JournalEntryAccount',
|
||||
Misc = 'Misc',
|
||||
NumberSeries = 'NumberSeries',
|
||||
Party = 'Party',
|
||||
Payment = 'Payment',
|
||||
PaymentFor = 'PaymentFor',
|
||||
PriceList = 'PriceList',
|
||||
PricingRule = 'PricingRule',
|
||||
PricingRuleItem = 'PricingRuleItem',
|
||||
PricingRuleDetail = 'PricingRuleDetail',
|
||||
PrintSettings = 'PrintSettings',
|
||||
PrintTemplate = 'PrintTemplate',
|
||||
PurchaseInvoice = 'PurchaseInvoice',
|
||||
PurchaseInvoiceItem = 'PurchaseInvoiceItem',
|
||||
SalesInvoice = 'SalesInvoice',
|
||||
SalesInvoiceItem = 'SalesInvoiceItem',
|
||||
SalesQuote = 'SalesQuote',
|
||||
SalesQuoteItem = 'SalesQuoteItem',
|
||||
SerialNumber = 'SerialNumber',
|
||||
SetupWizard = 'SetupWizard',
|
||||
Tax = 'Tax',
|
||||
TaxDetail = 'TaxDetail',
|
||||
TaxSummary = 'TaxSummary',
|
||||
PatchRun = 'PatchRun',
|
||||
SingleValue = 'SingleValue',
|
||||
InventorySettings = 'InventorySettings',
|
||||
SystemSettings = 'SystemSettings',
|
||||
StockMovement = 'StockMovement',
|
||||
StockMovementItem = 'StockMovementItem',
|
||||
StockLedgerEntry = 'StockLedgerEntry',
|
||||
Shipment = 'Shipment',
|
||||
ShipmentItem = 'ShipmentItem',
|
||||
PurchaseReceipt = 'PurchaseReceipt',
|
||||
PurchaseReceiptItem = 'PurchaseReceiptItem',
|
||||
Location = 'Location',
|
||||
CustomForm = 'CustomForm',
|
||||
CustomField = 'CustomField',
|
||||
POSSettings = 'POSSettings',
|
||||
POSShift = 'POSShift'
|
||||
}
|
||||
|
||||
export type ModelName = keyof typeof ModelNameEnum;
|
@ -24,6 +24,7 @@ export enum ModelNameEnum {
|
||||
PriceList = 'PriceList',
|
||||
PricingRule = 'PricingRule',
|
||||
PricingRuleItem = 'PricingRuleItem',
|
||||
PricingRuleDetail = 'PricingRuleDetail',
|
||||
PrintSettings = 'PrintSettings',
|
||||
PrintTemplate = 'PrintTemplate',
|
||||
PurchaseInvoice = 'PurchaseInvoice',
|
||||
|
Loading…
Reference in New Issue
Block a user