diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index bf6d237e..6fb52102 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -850,6 +850,27 @@ export default { this.pvm.languageName ), taxCodeSaleViz: x.taxCodeSaleViz, + + /* + "cost": 0, + "listPrice": 0, + "price": 0, + "taxName": null, + "taxAPct": 0, + "taxBPct": 0, + "taxOnTax": false, + "taxAViz": 0, + "taxBViz": 0, + "lineTotalViz": 0, + l.Add(new FormField { TKey = "Tax", FieldKey = "LaborTaxName", TKeySection = "WorkOrderItemLabors" }); + l.Add(new FormField { TKey = "TaxCodeTaxA", FieldKey = "LaborTaxAPct", TKeySection = "WorkOrderItemLabors" }); + l.Add(new FormField { TKey = "TaxCodeTaxB", FieldKey = "LaborTaxBPct", TKeySection = "WorkOrderItemLabors" }); + l.Add(new FormField { TKey = "TaxCodeTaxOnTax", FieldKey = "LaborTaxOnTax", TKeySection = "WorkOrderItemLabors" }); + l.Add(new FormField { TKey = "TaxAAmt", FieldKey = "LaborTaxAViz", TKeySection = "WorkOrderItemLabors" }); + l.Add(new FormField { TKey = "TaxBAmt", FieldKey = "LaborTaxBViz", TKeySection = "WorkOrderItemLabors" }); + l.Add(new FormField { TKey = "LineTotal", FieldKey = "LaborLineTotalViz", TKeySection = "WorkOrderItemLabors" }); + */ + manualDiscountPct: window.$gz.locale.decimalLocalized( x.manualDiscountPct, diff --git a/ayanova/src/views/svc-workorder.vue b/ayanova/src/views/svc-workorder.vue index a14f90fc..7a35ad38 100644 --- a/ayanova/src/views/svc-workorder.vue +++ b/ayanova/src/views/svc-workorder.vue @@ -1392,5 +1392,390 @@ async function populateSelectionLists(vm) { } //--------- + /* + + { + "data": { + "id": 10, + "concurrency": 7981529, + "serial": 10, + "notes": "Consequatur reprehenderit eveniet molestiae molestiae molestiae autem.", + "wiki": null, + "customFields": null, + "tags": [ + "brown", + "red", + "zone8", + "zone9" + ], + "customerId": 43, + "projectId": null, + "projectViz": null, + "internalReferenceNumber": "irf-6149", + "customerReferenceNumber": "crf-0272", + "customerContactName": "contact name here", + "fromQuoteId": null, + "fromPMId": null, + "fromCSRId": null, + "serviceDate": "2021-02-01T17:00:00Z", + "completeByDate": "2021-02-06T17:00:00Z", + "durationToCompleted": "00:00:00", + "invoiceNumber": null, + "customerSignature": null, + "customerSignatureName": null, + "customerSignatureCaptured": null, + "techSignature": null, + "techSignatureName": null, + "techSignatureCaptured": null, + "onsite": false, + "contractId": null, + "contractViz": "-", + "postAddress": "6304 Eduardo Lights", + "postCity": "Schoenfort", + "postRegion": "South Dakota", + "postCountry": "Liberia", + "postCode": "03315", + "address": "750 Darrell Cliff", + "city": "Armstrongview", + "region": "Illinois", + "country": "Israel", + "latitude": 9.8268, + "longitude": 34.3788, + "items": [ + { + "id": 20, + "concurrency": 7981529, + "notes": "itemnotes - 0 ", + "wiki": null, + "customFields": null, + "tags": [], + "workOrderId": 10, + "techNotes": "technotes - 0", + "workorderItemStatusId": 1, + "workorderItemPriorityId": 5, + "requestDate": "2021-02-01T17:00:00Z", + "warrantyService": false, + "sequence": 1, + "isDirty": false, + "expenses": [ + { + "id": 39, + "concurrency": 7981529, + "description": null, + "name": "Small Soft Pants", + "totalCost": 5.459658245770105, + "chargeAmount": 6.551589894924126, + "taxPaid": 0, + "chargeTaxCodeId": 2, + "chargeTaxCodeViz": "Goods only", + "reimburseUser": true, + "userId": 43, + "userViz": "Carolyne Watsica", + "chargeToCustomer": true, + "isDirty": false, + "workOrderItemId": 20 + }, + { + "id": 40, + "concurrency": 7981529, + "description": null, + "name": "Tasty Wooden Salad", + "totalCost": 10.91931649154021, + "chargeAmount": 12.011248140694232, + "taxPaid": 0, + "chargeTaxCodeId": 2, + "chargeTaxCodeViz": "Goods only", + "reimburseUser": true, + "userId": 25, + "userViz": "Dereck Romaguera", + "chargeToCustomer": true, + "isDirty": false, + "workOrderItemId": 20 + } + ], + "labors": [ + { + "id": 39, + "concurrency": 7981529, + "userId": 25, + "userViz": "Dereck Romaguera", + "serviceStartDate": "2021-02-01T17:00:00Z", + "serviceStopDate": "2021-02-01T18:00:00Z", + "serviceRateId": 6, + "serviceRateViz": "Purple TV", + "serviceDetails": "Error autem quaerat voluptatem.", + "serviceRateQuantity": 1, + "noChargeQuantity": 0, + "serviceBankId": null, + "taxCodeSaleId": null, + "taxCodeSaleViz": null, + "cost": 0, + "listPrice": 0, + "price": 0, + "taxName": null, + "taxAPct": 0, + "taxBPct": 0, + "taxOnTax": false, + "taxAViz": 0, + "taxBViz": 0, + "lineTotalViz": 0, + "isDirty": false, + "workOrderItemId": 20 + }, + { + "id": 40, + "concurrency": 7981529, + "userId": 22, + "userViz": "Georgette Dooley - CustomerLimited", + "serviceStartDate": "2021-02-01T17:00:00Z", + "serviceStopDate": "2021-02-01T18:00:00Z", + "serviceRateId": 2, + "serviceRateViz": "Silver service rate", + "serviceDetails": "Ipsam id officiis non.", + "serviceRateQuantity": 2, + "noChargeQuantity": 0, + "serviceBankId": null, + "taxCodeSaleId": null, + "taxCodeSaleViz": null, + "cost": 0, + "listPrice": 0, + "price": 0, + "taxName": null, + "taxAPct": 0, + "taxBPct": 0, + "taxOnTax": false, + "taxAViz": 0, + "taxBViz": 0, + "lineTotalViz": 0, + "isDirty": false, + "workOrderItemId": 20 + } + ], + "loans": [], + "parts": [], + "partRequests": [], + "scheduledUsers": [ + { + "id": 39, + "concurrency": 7981529, + "userId": 40, + "userViz": "Raul Berge", + "estimatedQuantity": 1, + "startDate": "2021-02-01T17:00:00Z", + "stopDate": "2021-02-01T18:00:00Z", + "serviceRateId": null, + "serviceRateViz": null, + "isDirty": false, + "workOrderItemId": 20 + }, + { + "id": 40, + "concurrency": 7981529, + "userId": 37, + "userViz": "Caleb Kovacek", + "estimatedQuantity": 2, + "startDate": "2021-02-01T17:00:00Z", + "stopDate": "2021-02-01T18:00:00Z", + "serviceRateId": null, + "serviceRateViz": null, + "isDirty": false, + "workOrderItemId": 20 + } + ], + "tasks": [], + "travels": [], + "units": [], + "outsideServices": [] + }, + { + "id": 21, + "concurrency": 7981529, + "notes": "itemnotes - 1 ", + "wiki": null, + "customFields": null, + "tags": [], + "workOrderId": 10, + "techNotes": "technotes - 1", + "workorderItemStatusId": 1, + "workorderItemPriorityId": 1, + "requestDate": "2021-02-01T17:01:00Z", + "warrantyService": false, + "sequence": 2, + "isDirty": false, + "expenses": [ + { + "id": 41, + "concurrency": 7981529, + "description": null, + "name": "Licensed Concrete Sausages", + "totalCost": 4.596012142764409, + "chargeAmount": 5.515214571317291, + "taxPaid": 0, + "chargeTaxCodeId": 2, + "chargeTaxCodeViz": "Goods only", + "reimburseUser": true, + "userId": 37, + "userViz": "Caleb Kovacek", + "chargeToCustomer": true, + "isDirty": false, + "workOrderItemId": 21 + }, + { + "id": 42, + "concurrency": 7981529, + "description": null, + "name": "Fantastic Concrete Fish", + "totalCost": 9.192024285528818, + "chargeAmount": 10.111226714081699, + "taxPaid": 0, + "chargeTaxCodeId": 2, + "chargeTaxCodeViz": "Goods only", + "reimburseUser": true, + "userId": 20, + "userViz": "Reta Braun - HeadOffice", + "chargeToCustomer": true, + "isDirty": false, + "workOrderItemId": 21 + } + ], + "labors": [ + { + "id": 41, + "concurrency": 7981529, + "userId": 34, + "userViz": "Matilda Mraz", + "serviceStartDate": "2021-02-01T17:00:00Z", + "serviceStopDate": "2021-02-01T18:00:00Z", + "serviceRateId": 4, + "serviceRateViz": "Salmon PA", + "serviceDetails": "Voluptatibus eos facilis impedit iusto atque nulla.", + "serviceRateQuantity": 1, + "noChargeQuantity": 0, + "serviceBankId": null, + "taxCodeSaleId": null, + "taxCodeSaleViz": null, + "cost": 0, + "listPrice": 0, + "price": 0, + "taxName": null, + "taxAPct": 0, + "taxBPct": 0, + "taxOnTax": false, + "taxAViz": 0, + "taxBViz": 0, + "lineTotalViz": 0, + "isDirty": false, + "workOrderItemId": 21 + }, + { + "id": 42, + "concurrency": 7981529, + "userId": 36, + "userViz": "Chasity VonRueden", + "serviceStartDate": "2021-02-01T17:00:00Z", + "serviceStopDate": "2021-02-01T18:00:00Z", + "serviceRateId": 2, + "serviceRateViz": "Silver service rate", + "serviceDetails": "Quibusdam autem ut aut.", + "serviceRateQuantity": 2, + "noChargeQuantity": 0, + "serviceBankId": null, + "taxCodeSaleId": null, + "taxCodeSaleViz": null, + "cost": 0, + "listPrice": 0, + "price": 0, + "taxName": null, + "taxAPct": 0, + "taxBPct": 0, + "taxOnTax": false, + "taxAViz": 0, + "taxBViz": 0, + "lineTotalViz": 0, + "isDirty": false, + "workOrderItemId": 21 + } + ], + "loans": [], + "parts": [], + "partRequests": [], + "scheduledUsers": [ + { + "id": 41, + "concurrency": 7981529, + "userId": 27, + "userViz": "Oran Kreiger", + "estimatedQuantity": 1, + "startDate": "2021-02-01T17:00:00Z", + "stopDate": "2021-02-01T18:00:00Z", + "serviceRateId": null, + "serviceRateViz": null, + "isDirty": false, + "workOrderItemId": 21 + }, + { + "id": 42, + "concurrency": 7981529, + "userId": 29, + "userViz": "Luisa Mayer", + "estimatedQuantity": 2, + "startDate": "2021-02-01T17:00:00Z", + "stopDate": "2021-02-01T18:00:00Z", + "serviceRateId": null, + "serviceRateViz": null, + "isDirty": false, + "workOrderItemId": 21 + } + ], + "tasks": [], + "travels": [], + "units": [], + "outsideServices": [] + } + ], + "states": [ + { + "id": 37, + "concurrency": 7981529, + "workOrderId": 10, + "workOrderStatusId": 2, + "created": "2021-02-01T17:05:00Z", + "userId": 34, + "userViz": "Matilda Mraz" + }, + { + "id": 38, + "concurrency": 7981529, + "workOrderId": 10, + "workOrderStatusId": 3, + "created": "2021-02-01T18:00:00Z", + "userId": 37, + "userViz": "Caleb Kovacek" + }, + { + "id": 39, + "concurrency": 7981529, + "workOrderId": 10, + "workOrderStatusId": 1, + "created": "2021-02-01T18:05:00Z", + "userId": 21, + "userViz": "Johnnie Mueller - CustomerFull" + }, + { + "id": 40, + "concurrency": 7981529, + "workOrderId": 10, + "workOrderStatusId": 3, + "created": "2021-02-01T19:00:00Z", + "userId": 41, + "userViz": "Palma Huel" + } + ], + "isDirty": false, + "isLockedAtServer": false, + "alertViz": null + } +} + */ }