mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
- feat: Update react-query package to V 2.1.1.
- feat: Favicon setup. - feat: Fix accounts inactivate/activate 1 account. - feat: Seed accounts, expenses and manual journals resource fields. - feat: Validate make journal receivable/payable without contact. - feat: Validate make journal contact without receivable or payable. - feat: More components abstractions. - feat: Use reselect.js to memorize components properties. - fix: Journal type of manual journal. - fix: Sidebar style optimization. - fix: Data-table check-box style optimization. - fix: Data-table spinner style dimensions. - fix: Submit journal with contact_id and contact_type.
This commit is contained in:
@@ -68,40 +68,189 @@ exports.seed = (knex) => {
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 31,
|
||||
resource_id: 1,
|
||||
data_type: 'numeric',
|
||||
label_name: 'Balance',
|
||||
key: 'balance',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 32,
|
||||
resource_id: 1,
|
||||
data_type: 'options',
|
||||
label_name: 'Currency',
|
||||
key: 'currency',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
data_resource: 'currencies',
|
||||
},
|
||||
{
|
||||
id: 33,
|
||||
resource_id: 1,
|
||||
data_type: 'options',
|
||||
label_name: 'Normal',
|
||||
key: 'normal',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
options: JSON.stringify([
|
||||
{ key: 'credit', label: 'Credit' },
|
||||
{ key: 'debit', label: 'Debit' },
|
||||
])
|
||||
},
|
||||
|
||||
// Manual Journals
|
||||
{
|
||||
id: 18,
|
||||
resource_id: 4,
|
||||
data_type: 'date',
|
||||
label_name: 'Date',
|
||||
key: 'date',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 19,
|
||||
resource_id: 4,
|
||||
data_type: 'date',
|
||||
label_name: 'Created At',
|
||||
key: 'created_at',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 20,
|
||||
resource_id: 4,
|
||||
data_type: 'textbox',
|
||||
label_name: 'Journal Number',
|
||||
key: 'journal_number',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 21,
|
||||
resource_id: 4,
|
||||
data_type: 'boolean',
|
||||
label_name: 'Active',
|
||||
key: 'status',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 22,
|
||||
resource_id: 4,
|
||||
data_type: 'textbox',
|
||||
label_name: 'Reference',
|
||||
key: 'reference',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 23,
|
||||
resource_id: 4,
|
||||
data_type: 'textbox',
|
||||
label_name: 'Description',
|
||||
key: 'description',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 24,
|
||||
resource_id: 4,
|
||||
data_type: 'numeric',
|
||||
label_name: 'Amount',
|
||||
key: 'amount',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 25,
|
||||
resource_id: 4,
|
||||
data_type: 'optons',
|
||||
label_name: 'User',
|
||||
key: 'user',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
data_resource: 'users',
|
||||
},
|
||||
{
|
||||
id: 26,
|
||||
resource_id: 4,
|
||||
data_type: 'textbox',
|
||||
label_name: 'Journal Type',
|
||||
key: 'journal_type',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
|
||||
// Expenses
|
||||
{
|
||||
id: 7,
|
||||
resource_id: 3,
|
||||
label_name: 'Date',
|
||||
label_name: 'Payment Date',
|
||||
key: 'payment_date',
|
||||
data_type: 'date',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 8,
|
||||
resource_id: 3,
|
||||
label_name: 'Expense Account',
|
||||
data_type: 'options',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 9,
|
||||
resource_id: 3,
|
||||
key: 'payment_account',
|
||||
label_name: 'Payment Account',
|
||||
data_type: 'options',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
data_resource: 'accounts',
|
||||
},
|
||||
{
|
||||
id: 10,
|
||||
resource_id: 3,
|
||||
key: 'total_amount',
|
||||
label_name: 'Amount',
|
||||
data_type: 'number',
|
||||
data_type: 'numeric',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 27,
|
||||
resource_id: 3,
|
||||
label_name: 'Reference No.',
|
||||
key: 'reference_no',
|
||||
data_type: 'textbox',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 28,
|
||||
resource_id: 3,
|
||||
key: 'description',
|
||||
label_name: 'Description',
|
||||
data_type: 'textbox',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 29,
|
||||
resource_id: 3,
|
||||
key: 'published',
|
||||
label_name: 'Published',
|
||||
data_type: 'checkbox',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 30,
|
||||
resource_id: 3,
|
||||
key: 'user',
|
||||
data_type: 'options',
|
||||
label_name: 'User',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
data_resource: 'users',
|
||||
},
|
||||
|
||||
// Items
|
||||
{
|
||||
@@ -113,7 +262,7 @@ exports.seed = (knex) => {
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
{
|
||||
id: 12,
|
||||
resource_id: 2,
|
||||
label_name: 'Type',
|
||||
@@ -122,35 +271,6 @@ exports.seed = (knex) => {
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
|
||||
// Manual Journals
|
||||
{
|
||||
id: 13,
|
||||
resource_id: 4,
|
||||
label_name: 'Transaction type',
|
||||
key: 'transaction_key',
|
||||
data_type: 'textbox',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 14,
|
||||
resource_id: 4,
|
||||
label_name: 'Amount',
|
||||
key: 'amount',
|
||||
data_type: 'textbox',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
{
|
||||
id: 15,
|
||||
resource_id: 4,
|
||||
label_name: 'Journal No.',
|
||||
key: 'journal_number',
|
||||
data_type: 'textbox',
|
||||
predefined: 1,
|
||||
columnable: true,
|
||||
},
|
||||
]);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user