This commit is contained in:
2021-06-14 17:06:17 +00:00
parent 81570e2cda
commit a2915c42e5
6 changed files with 11 additions and 70 deletions

View File

@@ -445,6 +445,7 @@ todo 2: open object handler for workorder descendants **VERY IMPORTANT**
todo: how to directly open a workorder quickly when you know the wo number?? todo: how to directly open a workorder quickly when you know the wo number??
should be supported, otherwise you need to scroll around a list to find it which is fucked should be supported, otherwise you need to scroll around a list to find it which is fucked
todo: picking from part assembly to populate a bunch of parts??
todo 2-3: test and confirm can duplicate workorder and it works properly todo 2-3: test and confirm can duplicate workorder and it works properly
inventory affecting items are handled how? Because duplicate happens AT the server so it can't just do the same exact items and serials and quantities etc inventory affecting items are handled how? Because duplicate happens AT the server so it can't just do the same exact items and serials and quantities etc

View File

@@ -488,16 +488,12 @@ export default {
id: 0, id: 0,
concurrency: 0, concurrency: 0,
userId: null, userId: null,
//userViz: null,
serviceStartDate: null, serviceStartDate: null,
serviceStopDate: null, //Actually I think it's best to be null, user can select NOW from start or stop and have it automatically do it's thing serviceStopDate: null,
// serviceStartDate: window.$gz.locale.nowUTC8601String(),
// serviceStopDate: window.$gz.locale.nowUTC8601String(), //TODO:sb now plus one hour to match v7
serviceRateId: null, serviceRateId: null,
serviceDetails: null, serviceDetails: null,
serviceRateQuantity: 0, serviceRateQuantity: 0,
noChargeQuantity: 0, noChargeQuantity: 0,
//serviceBankId: null,
taxCodeSaleId: null, taxCodeSaleId: null,
price: 0, price: 0,
priceOverride: null, priceOverride: null,

View File

@@ -508,18 +508,16 @@ export default {
this.value.items[this.activeWoItemIndex].loans.push({ this.value.items[this.activeWoItemIndex].loans.push({
id: 0, id: 0,
concurrency: 0, concurrency: 0,
userId: null, notes: null,
description: null, outDate: null,
serials: null, dueDate: null,
loanUnitId: 0, //zero to break rule on new returnDate: null,
loanWarehouseId: null,
quantity: 1,
rate: 0,
taxCodeId: null, taxCodeId: null,
price: 0, loanUnitId: 0, //zero to break rule on new
priceOverride: null, quantity: 1,
rate: 1,
cost: 0, cost: 0,
listPrice: 0, priceOverride: null,
isDirty: true, isDirty: true,
workOrderItemId: this.value.items[this.activeWoItemIndex].id, workOrderItemId: this.value.items[this.activeWoItemIndex].id,
uid: Date.now() //used for error tracking / display uid: Date.now() //used for error tracking / display

View File

@@ -84,39 +84,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* XXXeslint-disable */ /* XXXeslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
WORKORDER ITEM PART REQUEST
l.Add(new FormField { TKey = "WorkOrderItemPartRequestPartID", FieldKey = "WorkOrderItemPartRequestPartID", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "WorkOrderItemPartRequestPartWarehouseID", FieldKey = "WorkOrderItemPartRequestPartWarehouseID", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "WorkOrderItemPartRequestQuantity", FieldKey = "WorkOrderItemPartRequestQuantity", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "PartUPC", FieldKey = "PartRequestPartUPC", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "PurchaseOrder", FieldKey = "WorkOrderItemPartRequestPurchaseOrder", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "PurchaseOrderExpectedReceiveDate", FieldKey = "WorkOrderItemPartRequestExpectedReceiveDate", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "PurchaseOrderOrderedDate", FieldKey = "WorkOrderItemPartRequestOrderedDate", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "WorkOrderItemPartRequestOnOrder", FieldKey = "WorkOrderItemPartRequestOnOrder", TKeySection = "WorkOrderItemPartRequests" });
l.Add(new FormField { TKey = "WorkOrderItemPartRequestReceived", FieldKey = "WorkOrderItemPartRequestReceived", TKeySection = "WorkOrderItemPartRequests" });
{
"0": {
"id": 39,
"concurrency": 8121176,
"partId": 3,
"partViz": "565221",
"upcViz": "2202707210364",
"partWarehouseId": 1,
"partWarehouseViz": "Default",
"quantity": 1,
"purchaseOrderItemId": null,
"purchaseOrderViz": null,
"purchaseOrderIdViz": null,
"purchaseOrderDateViz": null,
"purchaseOrderExpectedDateViz": null,
"purchaseOrderOnOrderViz": false,
"received": 0,
"isDirty": false,
"workOrderItemId": 20
}
}
*/
export default { export default {
created() { created() {
this.setDefaultView(); this.setDefaultView();

View File

@@ -270,28 +270,7 @@
///////////////////////////////////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////////////////////////////////
/* XXXeslint-disable */ /* XXXeslint-disable */
//////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*
l.Add(new FormField { TKey = "WorkOrderItemScheduledUserEstimatedQuantity", FieldKey = "WorkOrderItemScheduledUserEstimatedQuantity", TKeySection = "WorkOrderItemScheduledUser" });
l.Add(new FormField { TKey = "WorkOrderItemScheduledUserServiceRateID", FieldKey = "WorkOrderItemScheduledUserServiceRateID", TKeySection = "WorkOrderItemScheduledUser" });
l.Add(new FormField { TKey = "WorkOrderItemScheduledUserStartDate", FieldKey = "WorkOrderItemScheduledUserStartDate", TKeySection = "WorkOrderItemScheduledUser" });
l.Add(new FormField { TKey = "WorkOrderItemScheduledUserStopDate", FieldKey = "WorkOrderItemScheduledUserStopDate", TKeySection = "WorkOrderItemScheduledUser" });
l.Add(new FormField { TKey = "WorkOrderItemScheduledUserUserID", FieldKey = "WorkOrderItemScheduledUserUserID", TKeySection = "WorkOrderItemScheduledUser" });
public long? UserId { get; set; }
public decimal EstimatedQuantity { get; set; }
public DateTime? StartDate { get; set; }
public DateTime? StopDate { get; set; }
public long? ServiceRateId { get; set; }
"WorkOrderItemScheduledUserServiceRateID": "Suggested rate",
"WorkOrderItemScheduledUserStartDate": "Start Date Time",
"WorkOrderItemScheduledUserStopDate": "Stop Date Time",
"WorkOrderItemScheduledUserUserID": "User",
*/
export default { export default {
created() { created() {
this.setDefaultView(); this.setDefaultView();

View File

@@ -494,7 +494,6 @@ export default {
travelDetails: null, travelDetails: null,
travelRateQuantity: 0, travelRateQuantity: 0,
noChargeQuantity: 0, noChargeQuantity: 0,
// serviceBankId: null,
taxCodeSaleId: null, taxCodeSaleId: null,
price: 0, price: 0,
priceOverride: null, priceOverride: null,