|
@@ -1080,44 +1080,44 @@ export default {
|
|
|
is_primary: false
|
|
is_primary: false
|
|
|
},
|
|
},
|
|
|
showContactPersonModal: false,
|
|
showContactPersonModal: false,
|
|
|
- isEditingContactPerson: false
|
|
|
|
|
- },
|
|
|
|
|
- // Authentication data
|
|
|
|
|
- isLoggedIn: false,
|
|
|
|
|
- currentUser: null,
|
|
|
|
|
- loginForm: {
|
|
|
|
|
- username: '',
|
|
|
|
|
- password: ''
|
|
|
|
|
- },
|
|
|
|
|
- loginError: '',
|
|
|
|
|
- invoices: [],
|
|
|
|
|
- invoicesLoading: false,
|
|
|
|
|
- invoiceSearch: '',
|
|
|
|
|
- showInvoiceModal: false,
|
|
|
|
|
- isEditingInvoice: false,
|
|
|
|
|
- selectedInvoice: {},
|
|
|
|
|
- invoiceForm: {
|
|
|
|
|
- id: null,
|
|
|
|
|
- client_id: null,
|
|
|
|
|
- invoice_number: '',
|
|
|
|
|
- issue_date: '',
|
|
|
|
|
- due_date: '',
|
|
|
|
|
- status: 'draft',
|
|
|
|
|
- subtotal: 0,
|
|
|
|
|
- tax_amount: 0,
|
|
|
|
|
- total_amount: 0,
|
|
|
|
|
- notes: ''
|
|
|
|
|
- },
|
|
|
|
|
- showInvoiceItemsModal: false,
|
|
|
|
|
- invoiceItems: [],
|
|
|
|
|
- invoiceItemsForm: {
|
|
|
|
|
- id: null,
|
|
|
|
|
- invoice_id: null,
|
|
|
|
|
- item_id: null,
|
|
|
|
|
- description: '',
|
|
|
|
|
- quantity: 1,
|
|
|
|
|
- unit_price: 0,
|
|
|
|
|
- line_total: 0
|
|
|
|
|
|
|
+ isEditingContactPerson: false,
|
|
|
|
|
+ // Authentication data
|
|
|
|
|
+ isLoggedIn: false,
|
|
|
|
|
+ currentUser: null,
|
|
|
|
|
+ loginForm: {
|
|
|
|
|
+ username: '',
|
|
|
|
|
+ password: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ loginError: '',
|
|
|
|
|
+ invoices: [],
|
|
|
|
|
+ invoicesLoading: false,
|
|
|
|
|
+ invoiceSearch: '',
|
|
|
|
|
+ showInvoiceModal: false,
|
|
|
|
|
+ isEditingInvoice: false,
|
|
|
|
|
+ selectedInvoice: {},
|
|
|
|
|
+ invoiceForm: {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ client_id: null,
|
|
|
|
|
+ invoice_number: '',
|
|
|
|
|
+ issue_date: '',
|
|
|
|
|
+ due_date: '',
|
|
|
|
|
+ status: 'draft',
|
|
|
|
|
+ subtotal: 0,
|
|
|
|
|
+ tax_amount: 0,
|
|
|
|
|
+ total_amount: 0,
|
|
|
|
|
+ notes: ''
|
|
|
|
|
+ },
|
|
|
|
|
+ showInvoiceItemsModal: false,
|
|
|
|
|
+ invoiceItems: [],
|
|
|
|
|
+ invoiceItemsForm: {
|
|
|
|
|
+ id: null,
|
|
|
|
|
+ invoice_id: null,
|
|
|
|
|
+ item_id: null,
|
|
|
|
|
+ description: '',
|
|
|
|
|
+ quantity: 1,
|
|
|
|
|
+ unit_price: 0,
|
|
|
|
|
+ line_total: 0
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
mounted() {
|
|
mounted() {
|