diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index fb10bb63..0e2cb44e 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -62,9 +62,6 @@ Coded by importance ## CLIENT MISC ITEMS --1 Default global setting tax codes, default minutes etc? - doesn't seem to be implemented, maybe it shoudl not be there?? - -2 hyperlinks in memos sb clickable to open in new tab or window or whatever this supports help links in migrate and also user links like "take a look at workorder 55" with a link to it in the UI recognize urls and make them actionable somehow @@ -859,4 +856,4 @@ BUILD 129 CHANGES OF NOTE - Extensions dialog could be dismissed by clicking outside or pressing escape circumventing Exit button; made Exit button only way to close dialog - Workorder / quote / pm adding missing work order item Travel "distance" field from travel section in form on data tables, customize forms etc - Work order item expense "Summary" field changed to "Description" in English translation to disambiguate it on lists and forms from Item "Summary" and Workorder header "Summary" - +- Work / Quote / PM order global default tax codes implemented in labor, loan, parts, sched users, travels but not outside service as wasn't in v7 and not sure if appropriate to default that one. Also not expenses because not default in v7 and also not always tax anyway. diff --git a/ayanova/src/components/pm-item-labors.vue b/ayanova/src/components/pm-item-labors.vue index b37ecbdd..d74bbefa 100644 --- a/ayanova/src/components/pm-item-labors.vue +++ b/ayanova/src/components/pm-item-labors.vue @@ -540,7 +540,8 @@ export default { serviceDetails: null, serviceRateQuantity: 0, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true, diff --git a/ayanova/src/components/pm-item-loans.vue b/ayanova/src/components/pm-item-loans.vue index e8e04c09..30f0ff8a 100644 --- a/ayanova/src/components/pm-item-loans.vue +++ b/ayanova/src/components/pm-item-loans.vue @@ -493,7 +493,7 @@ export default { outDate: null, dueDate: null, returnDate: null, - taxCodeId: null, + taxCodeId: window.$gz.store.state.globalSettings.defaultTaxPartSaleId, loanUnitId: 0, //zero to break rule on new quantity: 1, rate: 1, diff --git a/ayanova/src/components/pm-item-parts.vue b/ayanova/src/components/pm-item-parts.vue index 57f88829..c0edf690 100644 --- a/ayanova/src/components/pm-item-parts.vue +++ b/ayanova/src/components/pm-item-parts.vue @@ -614,7 +614,8 @@ export default { partId: z.partId, partWarehouseId: this.selectedPartWarehouse, quantity: z.quantity, - taxPartSaleId: null, + taxPartSaleId: + window.$gz.store.state.globalSettings.defaultTaxPartSaleId, price: 0, priceOverride: null, cost: 0, @@ -723,7 +724,8 @@ export default { partId: 0, //deliberately zero to break rule on new partWarehouseId: 1, //important always default to "default" warehouse id 1 as even with inventory turned off it's required quantity: 1, - taxPartSaleId: null, + taxPartSaleId: + window.$gz.store.state.globalSettings.defaultTaxPartSaleId, price: 0, priceOverride: null, cost: 0, diff --git a/ayanova/src/components/pm-item-scheduled-users.vue b/ayanova/src/components/pm-item-scheduled-users.vue index 262abea1..fc599de1 100644 --- a/ayanova/src/components/pm-item-scheduled-users.vue +++ b/ayanova/src/components/pm-item-scheduled-users.vue @@ -383,7 +383,8 @@ export default { serviceDetails: null, serviceRateQuantity: s.estimatedQuantity, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true, diff --git a/ayanova/src/components/pm-item-travels.vue b/ayanova/src/components/pm-item-travels.vue index fcc03b81..84f518fc 100644 --- a/ayanova/src/components/pm-item-travels.vue +++ b/ayanova/src/components/pm-item-travels.vue @@ -553,7 +553,8 @@ export default { : null, travelStartDate: null, travelStopDate: null, - travelRateId: null, + travelRateId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, travelDetails: null, travelRateQuantity: 0, noChargeQuantity: 0, diff --git a/ayanova/src/components/quote-item-labors.vue b/ayanova/src/components/quote-item-labors.vue index 4e2973fd..4bd82c81 100644 --- a/ayanova/src/components/quote-item-labors.vue +++ b/ayanova/src/components/quote-item-labors.vue @@ -540,7 +540,8 @@ export default { serviceDetails: null, serviceRateQuantity: 0, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true, diff --git a/ayanova/src/components/quote-item-loans.vue b/ayanova/src/components/quote-item-loans.vue index aa162701..3c335913 100644 --- a/ayanova/src/components/quote-item-loans.vue +++ b/ayanova/src/components/quote-item-loans.vue @@ -493,7 +493,7 @@ export default { outDate: null, dueDate: null, returnDate: null, - taxCodeId: null, + taxCodeId: window.$gz.store.state.globalSettings.defaultTaxPartSaleId, loanUnitId: 0, //zero to break rule on new quantity: 1, rate: 1, diff --git a/ayanova/src/components/quote-item-parts.vue b/ayanova/src/components/quote-item-parts.vue index 35826a3d..72ba30c1 100644 --- a/ayanova/src/components/quote-item-parts.vue +++ b/ayanova/src/components/quote-item-parts.vue @@ -614,7 +614,8 @@ export default { partId: z.partId, partWarehouseId: this.selectedPartWarehouse, quantity: z.quantity, - taxPartSaleId: null, + taxPartSaleId: + window.$gz.store.state.globalSettings.defaultTaxPartSaleId, price: 0, priceOverride: null, cost: 0, @@ -723,7 +724,8 @@ export default { partId: 0, //deliberately zero to break rule on new partWarehouseId: 1, //important always default to "default" warehouse id 1 as even with inventory turned off it's required quantity: 1, - taxPartSaleId: null, + taxPartSaleId: + window.$gz.store.state.globalSettings.defaultTaxPartSaleId, price: 0, priceOverride: null, cost: 0, diff --git a/ayanova/src/components/quote-item-scheduled-users.vue b/ayanova/src/components/quote-item-scheduled-users.vue index 480d3f6b..b64f9d15 100644 --- a/ayanova/src/components/quote-item-scheduled-users.vue +++ b/ayanova/src/components/quote-item-scheduled-users.vue @@ -383,7 +383,8 @@ export default { serviceDetails: null, serviceRateQuantity: s.estimatedQuantity, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true, diff --git a/ayanova/src/components/quote-item-travels.vue b/ayanova/src/components/quote-item-travels.vue index 77e68c7a..296298aa 100644 --- a/ayanova/src/components/quote-item-travels.vue +++ b/ayanova/src/components/quote-item-travels.vue @@ -553,7 +553,8 @@ export default { : null, travelStartDate: null, travelStopDate: null, - travelRateId: null, + travelRateId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, travelDetails: null, travelRateQuantity: 0, noChargeQuantity: 0, diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index 478e7950..a9209254 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -540,7 +540,8 @@ export default { serviceDetails: null, serviceRateQuantity: 0, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true, diff --git a/ayanova/src/components/work-order-item-loans.vue b/ayanova/src/components/work-order-item-loans.vue index b0ace954..cfa57eda 100644 --- a/ayanova/src/components/work-order-item-loans.vue +++ b/ayanova/src/components/work-order-item-loans.vue @@ -497,7 +497,7 @@ export default { outDate: null, dueDate: null, returnDate: null, - taxCodeId: null, + taxCodeId: window.$gz.store.state.globalSettings.defaultTaxPartSaleId, loanUnitId: 0, //zero to break rule on new quantity: 1, rate: 1, diff --git a/ayanova/src/components/work-order-item-outside-services.vue b/ayanova/src/components/work-order-item-outside-services.vue index bcca6382..7d75f5da 100644 --- a/ayanova/src/components/work-order-item-outside-services.vue +++ b/ayanova/src/components/work-order-item-outside-services.vue @@ -688,7 +688,7 @@ export default { sentDate: window.$gz.locale.nowUTC8601String(), etaDate: null, returnDate: null, - taxCodeId: null, + taxCodeId: null, //Is it labor or parts tax code? wasn't in v7 leaving empty for now isDirty: true, workOrderItemId: this.value.items[this.activeWoItemIndex].id, uid: Date.now(), diff --git a/ayanova/src/components/work-order-item-parts.vue b/ayanova/src/components/work-order-item-parts.vue index f8c2a8d8..27583ca0 100644 --- a/ayanova/src/components/work-order-item-parts.vue +++ b/ayanova/src/components/work-order-item-parts.vue @@ -614,7 +614,8 @@ export default { partId: z.partId, partWarehouseId: this.selectedPartWarehouse, quantity: z.quantity, - taxPartSaleId: null, + taxPartSaleId: + window.$gz.store.state.globalSettings.defaultTaxPartSaleId, price: 0, priceOverride: null, cost: 0, @@ -723,7 +724,8 @@ export default { partId: 0, //deliberately zero to break rule on new partWarehouseId: 1, //important always default to "default" warehouse id 1 as even with inventory turned off it's required quantity: 1, - taxPartSaleId: null, + taxPartSaleId: + window.$gz.store.state.globalSettings.defaultTaxPartSaleId, price: 0, priceOverride: null, cost: 0, diff --git a/ayanova/src/components/work-order-item-scheduled-users.vue b/ayanova/src/components/work-order-item-scheduled-users.vue index 639f63c9..d1bf40ec 100644 --- a/ayanova/src/components/work-order-item-scheduled-users.vue +++ b/ayanova/src/components/work-order-item-scheduled-users.vue @@ -383,7 +383,8 @@ export default { serviceDetails: null, serviceRateQuantity: s.estimatedQuantity, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true, diff --git a/ayanova/src/components/work-order-item-travels.vue b/ayanova/src/components/work-order-item-travels.vue index ee5c0d57..48b0633e 100644 --- a/ayanova/src/components/work-order-item-travels.vue +++ b/ayanova/src/components/work-order-item-travels.vue @@ -559,7 +559,8 @@ export default { travelDetails: null, travelRateQuantity: 0, noChargeQuantity: 0, - taxCodeSaleId: null, + taxCodeSaleId: + window.$gz.store.state.globalSettings.defaultTaxRateSaleId, price: 0, priceOverride: null, isDirty: true,