inventory stock action
This commit is contained in:
parent
c8f4fbffe2
commit
02032fd97b
200
config/type.php
200
config/type.php
@ -102,18 +102,18 @@ return [
|
|||||||
// Documents
|
// Documents
|
||||||
'document' => [
|
'document' => [
|
||||||
Document::INVOICE_TYPE => [
|
Document::INVOICE_TYPE => [
|
||||||
'alias' => '', // core empty but module write own alias
|
'alias' => '', // core empty but module write own alias
|
||||||
'group' => 'sales', // controller folder name for permission and route
|
'group' => 'sales', // controller folder name for permission and route
|
||||||
'route' => [
|
'route' => [
|
||||||
'prefix' => 'invoices', // core use with group + prefix, module ex. estimates
|
'prefix' => 'invoices', // core use with group + prefix, module ex. estimates
|
||||||
'parameter' => 'invoice', // sales/invoices/{parameter}/edit
|
'parameter' => 'invoice', // sales/invoices/{parameter}/edit
|
||||||
'document' => 'invoices.index',
|
'document' => 'invoices.index',
|
||||||
'recurring' => 'recurring-invoices.index',
|
'recurring' => 'recurring-invoices.index',
|
||||||
//'create' => 'invoices.create', // if you change route, you can write full path
|
//'create' => 'invoices.create', // if you change route, you can write full path
|
||||||
],
|
],
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'prefix' => 'invoices', // this controller file name.
|
'prefix' => 'invoices', // this controller file name.
|
||||||
//'create' => 'create-sales-invoices', // if you change action permission key, you can write full permission
|
//'create' => 'create-sales-invoices', // if you change action permission key, you can write full permission
|
||||||
],
|
],
|
||||||
'translation' => [
|
'translation' => [
|
||||||
'prefix' => 'invoices', // this translation file name.
|
'prefix' => 'invoices', // this translation file name.
|
||||||
@ -123,49 +123,50 @@ return [
|
|||||||
'section_billing_description' => 'invoices.form_description.billing',
|
'section_billing_description' => 'invoices.form_description.billing',
|
||||||
],
|
],
|
||||||
'setting' => [
|
'setting' => [
|
||||||
'prefix' => 'invoice',
|
'prefix' => 'invoice',
|
||||||
],
|
],
|
||||||
'category_type' => 'income',
|
'category_type' => 'income',
|
||||||
'transaction_type' => 'income',
|
'transaction_type' => 'income',
|
||||||
'contact_type' => 'customer', // use contact type
|
'contact_type' => 'customer', // use contact type
|
||||||
'transaction' => [
|
'inventory_stock_action' => 'decrease', // decrease stock in stock tracking
|
||||||
'email_template' => 'invoice_payment_customer', // use email template
|
'transaction' => [
|
||||||
|
'email_template' => 'invoice_payment_customer', // use email template
|
||||||
],
|
],
|
||||||
'hide' => [], // for document items
|
'hide' => [], // for document items
|
||||||
'class' => [],
|
'class' => [],
|
||||||
'notification' => [
|
'notification' => [
|
||||||
'class' => 'App\Notifications\Sale\Invoice',
|
'class' => 'App\Notifications\Sale\Invoice',
|
||||||
'notify_contact' => true,
|
'notify_contact' => true,
|
||||||
'notify_user' => true,
|
'notify_user' => true,
|
||||||
],
|
],
|
||||||
'script' => [
|
'script' => [
|
||||||
'folder' => 'common',
|
'folder' => 'common',
|
||||||
'file' => 'documents',
|
'file' => 'documents',
|
||||||
],
|
],
|
||||||
'status_workflow' => [
|
'status_workflow' => [
|
||||||
'draft' => 'send',
|
'draft' => 'send',
|
||||||
'sent' => 'get-paid',
|
'sent' => 'get-paid',
|
||||||
'viewed' => 'get-paid',
|
'viewed' => 'get-paid',
|
||||||
'partial' => 'get-paid',
|
'partial' => 'get-paid',
|
||||||
'paid' => 'get-paid',
|
'paid' => 'get-paid',
|
||||||
'cancelled' => 'restore',
|
'cancelled' => 'restore',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
Document::INVOICE_RECURRING_TYPE => [
|
Document::INVOICE_RECURRING_TYPE => [
|
||||||
'alias' => '', // core empty but module write own alias
|
'alias' => '', // core empty but module write own alias
|
||||||
'group' => 'sales', // controller folder name for permission and route
|
'group' => 'sales', // controller folder name for permission and route
|
||||||
'route' => [
|
'route' => [
|
||||||
'prefix' => 'recurring-invoices', // core use with group + prefix, module ex. estimates
|
'prefix' => 'recurring-invoices', // core use with group + prefix, module ex. estimates
|
||||||
'parameter' => 'recurring_invoice', // sales/invoices/{parameter}/edit
|
'parameter' => 'recurring_invoice', // sales/invoices/{parameter}/edit
|
||||||
'document' => 'invoices.index',
|
'document' => 'invoices.index',
|
||||||
'recurring' => 'recurring-invoices.index',
|
'recurring' => 'recurring-invoices.index',
|
||||||
'end' => 'recurring-invoices.end',
|
'end' => 'recurring-invoices.end',
|
||||||
//'create' => 'invoices.create', // if you change route, you can write full path
|
//'create' => 'invoices.create', // if you change route, you can write full path
|
||||||
],
|
],
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'prefix' => 'invoices', // this controller file name.
|
'prefix' => 'invoices', // this controller file name.
|
||||||
//'create' => 'create-sales-invoices', // if you change action permission key, you can write full permission
|
//'create' => 'create-sales-invoices', // if you change action permission key, you can write full permission
|
||||||
],
|
],
|
||||||
'translation' => [
|
'translation' => [
|
||||||
'prefix' => 'invoices', // this translation file name.
|
'prefix' => 'invoices', // this translation file name.
|
||||||
@ -176,41 +177,42 @@ return [
|
|||||||
'section_billing_description' => 'invoices.form_description.billing',
|
'section_billing_description' => 'invoices.form_description.billing',
|
||||||
],
|
],
|
||||||
'setting' => [
|
'setting' => [
|
||||||
'prefix' => 'invoice',
|
'prefix' => 'invoice',
|
||||||
],
|
],
|
||||||
'category_type' => 'income',
|
'category_type' => 'income',
|
||||||
'transaction_type' => 'income',
|
'transaction_type' => 'income',
|
||||||
'contact_type' => 'customer', // use contact type
|
'contact_type' => 'customer', // use contact type
|
||||||
'hide' => [], // for document items
|
'inventory_stock_action' => 'decrease', // decrease stock in stock tracking
|
||||||
'class' => [],
|
'hide' => [], // for document items
|
||||||
|
'class' => [],
|
||||||
'notification' => [
|
'notification' => [
|
||||||
|
|
||||||
],
|
],
|
||||||
'image_empty_page' => 'public/img/empty_pages/recurring_templates.png',
|
'image_empty_page' => 'public/img/empty_pages/recurring_templates.png',
|
||||||
'script' => [
|
'script' => [
|
||||||
'folder' => 'common',
|
'folder' => 'common',
|
||||||
'file' => 'documents',
|
'file' => 'documents',
|
||||||
],
|
],
|
||||||
'status_workflow' => [
|
'status_workflow' => [
|
||||||
'draft' => 'schedule',
|
'draft' => 'schedule',
|
||||||
'active' => 'schedule',
|
'active' => 'schedule',
|
||||||
'end' => 'schedule',
|
'end' => 'schedule',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
Document::BILL_TYPE => [
|
Document::BILL_TYPE => [
|
||||||
'alias' => '',
|
'alias' => '',
|
||||||
'group' => 'purchases',
|
'group' => 'purchases',
|
||||||
'route' => [
|
'route' => [
|
||||||
'prefix' => 'bills',
|
'prefix' => 'bills',
|
||||||
'parameter' => 'bill',
|
'parameter' => 'bill',
|
||||||
'document' => 'bills.index',
|
'document' => 'bills.index',
|
||||||
'recurring' => 'recurring-bills.index',
|
'recurring' => 'recurring-bills.index',
|
||||||
//'create' => 'bilss.create',
|
//'create' => 'bilss.create',
|
||||||
],
|
],
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'prefix' => 'bills',
|
'prefix' => 'bills',
|
||||||
//'create' => 'create-purchases-bills',
|
//'create' => 'create-purchases-bills',
|
||||||
],
|
],
|
||||||
'translation' => [
|
'translation' => [
|
||||||
'prefix' => 'bills',
|
'prefix' => 'bills',
|
||||||
@ -219,48 +221,49 @@ return [
|
|||||||
'section_billing_description' => 'bills.form_description.billing',
|
'section_billing_description' => 'bills.form_description.billing',
|
||||||
],
|
],
|
||||||
'setting' => [
|
'setting' => [
|
||||||
'prefix' => 'bill',
|
'prefix' => 'bill',
|
||||||
],
|
],
|
||||||
'category_type' => 'expense',
|
'category_type' => 'expense',
|
||||||
'transaction_type' => 'expense',
|
'transaction_type' => 'expense',
|
||||||
'contact_type' => 'vendor',
|
'contact_type' => 'vendor',
|
||||||
'transaction' => [
|
'inventory_stock_action' => 'increase', // increases stock in stock tracking
|
||||||
'email_template' => 'invoice_payment_customer', // use email template
|
'transaction' => [
|
||||||
|
'email_template' => 'invoice_payment_customer', // use email template
|
||||||
],
|
],
|
||||||
'hide' => [],
|
'hide' => [],
|
||||||
'notification' => [
|
'notification' => [
|
||||||
'class' => 'App\Notifications\Purchase\Bill',
|
'class' => 'App\Notifications\Purchase\Bill',
|
||||||
'notify_contact' => false,
|
'notify_contact' => false,
|
||||||
'notify_user' => true,
|
'notify_user' => true,
|
||||||
],
|
],
|
||||||
'script' => [
|
'script' => [
|
||||||
'folder' => 'common',
|
'folder' => 'common',
|
||||||
'file' => 'documents',
|
'file' => 'documents',
|
||||||
],
|
],
|
||||||
'status_workflow' => [
|
'status_workflow' => [
|
||||||
'draft' => 'receive',
|
'draft' => 'receive',
|
||||||
'received' => 'make-payment',
|
'received' => 'make-payment',
|
||||||
'viewed' => 'make-payment',
|
'viewed' => 'make-payment',
|
||||||
'partial' => 'make-payment',
|
'partial' => 'make-payment',
|
||||||
'paid' => 'make-payment',
|
'paid' => 'make-payment',
|
||||||
'cancelled' => 'restore',
|
'cancelled' => 'restore',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
Document::BILL_RECURRING_TYPE => [
|
Document::BILL_RECURRING_TYPE => [
|
||||||
'alias' => '',
|
'alias' => '',
|
||||||
'group' => 'purchases',
|
'group' => 'purchases',
|
||||||
'route' => [
|
'route' => [
|
||||||
'prefix' => 'recurring-bills',
|
'prefix' => 'recurring-bills',
|
||||||
'parameter' => 'recurring_bill',
|
'parameter' => 'recurring_bill',
|
||||||
'document' => 'bills.index',
|
'document' => 'bills.index',
|
||||||
'recurring' => 'recurring-bills.index',
|
'recurring' => 'recurring-bills.index',
|
||||||
'end' => 'recurring-bills.end',
|
'end' => 'recurring-bills.end',
|
||||||
//'create' => 'bilss.create',
|
//'create' => 'bilss.create',
|
||||||
],
|
],
|
||||||
'permission' => [
|
'permission' => [
|
||||||
'prefix' => 'bills',
|
'prefix' => 'bills',
|
||||||
//'create' => 'create-purchases-bills',
|
//'create' => 'create-purchases-bills',
|
||||||
],
|
],
|
||||||
'translation' => [
|
'translation' => [
|
||||||
'prefix' => 'bills',
|
'prefix' => 'bills',
|
||||||
@ -270,24 +273,25 @@ return [
|
|||||||
'section_billing_description' => 'bills.form_description.billing',
|
'section_billing_description' => 'bills.form_description.billing',
|
||||||
],
|
],
|
||||||
'setting' => [
|
'setting' => [
|
||||||
'prefix' => 'bill',
|
'prefix' => 'bill',
|
||||||
],
|
],
|
||||||
'category_type' => 'expense',
|
'category_type' => 'expense',
|
||||||
'transaction_type' => 'expense',
|
'transaction_type' => 'expense',
|
||||||
'contact_type' => 'vendor',
|
'contact_type' => 'vendor',
|
||||||
'hide' => [],
|
'inventory_stock_action' => 'increase', // increases stock in stock tracking
|
||||||
|
'hide' => [],
|
||||||
'notification' => [
|
'notification' => [
|
||||||
|
|
||||||
],
|
],
|
||||||
'image_empty_page' => 'public/img/empty_pages/recurring_templates.png',
|
'image_empty_page' => 'public/img/empty_pages/recurring_templates.png',
|
||||||
'script' => [
|
'script' => [
|
||||||
'folder' => 'common',
|
'folder' => 'common',
|
||||||
'file' => 'documents',
|
'file' => 'documents',
|
||||||
],
|
],
|
||||||
'status_workflow' => [
|
'status_workflow' => [
|
||||||
'draft' => 'schedule',
|
'draft' => 'schedule',
|
||||||
'active' => 'schedule',
|
'active' => 'schedule',
|
||||||
'end' => 'schedule',
|
'end' => 'schedule',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user