mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
46 lines
1.2 KiB
TypeScript
46 lines
1.2 KiB
TypeScript
import { SeedDemoAbstract } from './SeedDemoAbstract';
|
|
|
|
export class SeedDemoAccountItems extends SeedDemoAbstract {
|
|
/**
|
|
* Retrieves the seeder file mapping.
|
|
*/
|
|
get mapping() {
|
|
return [
|
|
{ from: 'Item Type', to: 'type' },
|
|
{ from: 'Item Name', to: 'name' },
|
|
{ from: 'Item Code', to: 'code' },
|
|
{ from: 'Sellable', to: 'sellable' },
|
|
{ from: 'Purchasable', to: 'purchasable' },
|
|
{ from: 'Sell Price', to: 'sellPrice' },
|
|
{ from: 'Cost Price', to: 'costPrice' },
|
|
{ from: 'Cost Account', to: 'costAccountId' },
|
|
{ from: 'Sell Account', to: 'sellAccountId' },
|
|
{ from: 'Inventory Account', to: 'inventoryAccountId' },
|
|
{ from: 'Sell Description', to: 'sellDescription' },
|
|
{
|
|
from: 'Purchase Description',
|
|
to: 'purchaseDescription',
|
|
},
|
|
{ from: 'Note', to: 'note' },
|
|
{ from: 'Category', to: 'category' },
|
|
{ from: 'Active', to: 'active' },
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Retrieves the seeder file name.
|
|
* @returns {string}
|
|
*/
|
|
get importFileName() {
|
|
return `items.csv`;
|
|
}
|
|
|
|
/**
|
|
* Retrieve the resource name of the seeder.
|
|
* @returns {string}
|
|
*/
|
|
get resource() {
|
|
return 'Item';
|
|
}
|
|
}
|