From 20f75ffd24a82019348aa9f05b4aa357f431cfc0 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Fri, 21 May 2021 14:22:40 +0000 Subject: [PATCH] --- .../src/components/work-order-item-labors.vue | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/ayanova/src/components/work-order-item-labors.vue b/ayanova/src/components/work-order-item-labors.vue index 9ca33083..154307ce 100644 --- a/ayanova/src/components/work-order-item-labors.vue +++ b/ayanova/src/components/work-order-item-labors.vue @@ -465,7 +465,30 @@ /* XXXeslint-disable */ //////////////////////////////////////////////////////////////////////////////////////////////////////////// import GzTaxPicker from "./tax-picker.vue"; +/* + + public decimal? PriceOverride { get; set; }//user entered manually overridden price, if null then ignored in calcs otherwise this *is* the price even if zero + l.Add(new FormField { TKey = "PriceOverride", FieldKey = "LaborPriceOverride", TKeySection = "WorkOrderItemLabors" }); + [NotMapped] + public decimal CostViz { get; set; }//cost from source record (e.g. serviceRate) or zero if no cost entered + [NotMapped] + public decimal ListPriceViz { get; set; }//List price from source record (e.g. serviceRate) or zero if no cost entered + [NotMapped] + + public string UnitOfMeasureViz { get; set; }//"each", "hour" etc + l.Add(new FormField { TKey = "UnitOfMeasure", FieldKey = "LaborUnitOfMeasureViz", TKeySection = "WorkOrderItemLabors" }); + [NotMapped] + public decimal PriceViz { get; set; }//per unit price used in calcs after discounts or manual price if non-null or just ListPrice if no discount or manual override + [NotMapped] + + public decimal NetViz { get; set; }//quantity * price (before taxes line total essentially) + l.Add(new FormField { TKey = "NetPrice", FieldKey = "LaborNetViz", TKeySection = "WorkOrderItemLabors" }); + [NotMapped] + public decimal TaxAViz { get; set; }//total amount of taxA + [NotMapped] + public decimal TaxBViz { get; set; }//total amount of taxB + [NotMapped] + public decimal LineTotalViz { get; set; }//line total netViz + taxes + + */ export default { components: { GzTaxPicker