mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
591e7b3163
- fix model exports - add a README for models base
48 lines
1.7 KiB
TypeScript
48 lines
1.7 KiB
TypeScript
import { Account } from './baseModels/Account/Account';
|
|
import { AccountingLedgerEntry } from './baseModels/AccountingLedgerEntry/AccountingLedgerEntry';
|
|
import { AccountingSettings } from './baseModels/AccountingSettings/AccountingSettings';
|
|
import { Address } from './baseModels/Address/Address';
|
|
import { Item } from './baseModels/Item/Item';
|
|
import { JournalEntry } from './baseModels/JournalEntry/JournalEntry';
|
|
import { JournalEntryAccount } from './baseModels/JournalEntryAccount/JournalEntryAccount';
|
|
import { Party } from './baseModels/Party/Party';
|
|
import { Payment } from './baseModels/Payment/Payment';
|
|
import { PaymentFor } from './baseModels/PaymentFor/PaymentFor';
|
|
import { PurchaseInvoice } from './baseModels/PurchaseInvoice/PurchaseInvoice';
|
|
import { PurchaseInvoiceItem } from './baseModels/PurchaseInvoiceItem/PurchaseInvoiceItem';
|
|
import { SalesInvoice } from './baseModels/SalesInvoice/SalesInvoice';
|
|
import { SalesInvoiceItem } from './baseModels/SalesInvoiceItem/SalesInvoiceItem';
|
|
import { SetupWizard } from './baseModels/SetupWizard/SetupWizard';
|
|
import { Tax } from './baseModels/Tax/Tax';
|
|
import { TaxSummary } from './baseModels/TaxSummary/TaxSummary';
|
|
|
|
export default {
|
|
Account,
|
|
AccountingLedgerEntry,
|
|
AccountingSettings,
|
|
Address,
|
|
Item,
|
|
JournalEntry,
|
|
JournalEntryAccount,
|
|
Party,
|
|
Payment,
|
|
PaymentFor,
|
|
PurchaseInvoice,
|
|
PurchaseInvoiceItem,
|
|
SalesInvoice,
|
|
SalesInvoiceItem,
|
|
SetupWizard,
|
|
Tax,
|
|
TaxSummary,
|
|
};
|
|
|
|
export async function getRegionalModels(countryCode: string) {
|
|
if (countryCode !== 'in') {
|
|
return {};
|
|
}
|
|
|
|
const { Address } = await import('./regionalModels/in/Address');
|
|
const { Party } = await import('./regionalModels/in/Party');
|
|
return { Address, Party };
|
|
}
|