This commit is contained in:
@@ -402,16 +402,13 @@ todo: DEFAULT TIME SPAN / AUTO SET workorderitemlabor / scheduled user
|
||||
update quantity when dates change or update stop date when quantity changes to match
|
||||
no consideration for global default, once it's made that shit doesn't apply
|
||||
NEW
|
||||
First - update global settings, add schedule/labor default minutes and separately Travel default minutes
|
||||
No auto date set on new, just leave empty
|
||||
(ONLY IF GLOBAL DEFAULT QTY) enter start date when stop date is null then it will add global default to start and set stop and qty
|
||||
(ONLY IF GLOBAL DEFAULT QTY) enter stop date when start date is null then it will back calc and set start and qty based on global default
|
||||
If no global default then it acts like existing and updates qty or stop date when qty changes (if there are dates to go on)
|
||||
|
||||
|
||||
todo: workorderitemscheduled user new record if not today date chosen for start should default stop to global time (not sure about this feature from v7 seems impractical)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
todo: seeder stock data / translations: loanunit "Units" have extraneous "rate" in them, i.e. "Hourly rate", sb just "Hourly"
|
||||
|
||||
@@ -82,12 +82,45 @@
|
||||
@input="fieldValueChanged('workOrderCompleteByAge')"
|
||||
></gz-duration-picker>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<span class="text-h6">
|
||||
{{ $ay.t("ContractDefaultAdjustments") }}</span
|
||||
>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
v-model="obj.workLaborScheduleDefaultMinutes"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('GlobalLaborSchedUserDfltTimeSpan')"
|
||||
ref="workLaborScheduleDefaultMinutes"
|
||||
data-cy="workLaborScheduleDefaultMinutes"
|
||||
:rules="[
|
||||
form().integerValid(this, 'workLaborScheduleDefaultMinutes'),
|
||||
form().required(this, 'workLaborScheduleDefaultMinutes')
|
||||
]"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'workLaborScheduleDefaultMinutes')
|
||||
"
|
||||
@input="fieldValueChanged('workLaborScheduleDefaultMinutes')"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-text-field
|
||||
v-model="obj.workOrderTravelDefaultMinutes"
|
||||
:readonly="formState.readOnly"
|
||||
:label="$ay.t('GlobalTravelDfltTimeSpan')"
|
||||
ref="workOrderTravelDefaultMinutes"
|
||||
data-cy="workOrderTravelDefaultMinutes"
|
||||
:rules="[
|
||||
form().integerValid(this, 'workOrderTravelDefaultMinutes'),
|
||||
form().required(this, 'workOrderTravelDefaultMinutes')
|
||||
]"
|
||||
:error-messages="
|
||||
form().serverErrors(this, 'workOrderTravelDefaultMinutes')
|
||||
"
|
||||
@input="fieldValueChanged('workOrderTravelDefaultMinutes')"
|
||||
></v-text-field>
|
||||
</v-col>
|
||||
<v-col cols="12">
|
||||
<span class="text-h6"> {{ $ay.t("UserInterfaceSettings") }}</span>
|
||||
</v-col>
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-card elevation="0" outlined v-if="formState.ready">
|
||||
<v-list subheader>
|
||||
@@ -200,7 +233,9 @@ export default {
|
||||
taxPartPurchaseId: null,
|
||||
taxPartSaleId: null,
|
||||
taxRateSaleId: null,
|
||||
workOrderCompleteByAge: "00:00:00"
|
||||
workOrderCompleteByAge: "00:00:00",
|
||||
workOrderTravelDefaultMinutes: 0,
|
||||
workLaborScheduleDefaultMinutes: 0
|
||||
},
|
||||
formState: {
|
||||
ready: false,
|
||||
@@ -421,7 +456,9 @@ async function fetchTranslatedText(vm) {
|
||||
"GlobalTaxPartSaleID",
|
||||
"GlobalTaxRateSaleID",
|
||||
"GlobalNextSeeds",
|
||||
"GlobalWorkOrderCompleteByAge"
|
||||
"GlobalWorkOrderCompleteByAge",
|
||||
"GlobalLaborSchedUserDfltTimeSpan",
|
||||
"GlobalTravelDfltTimeSpan"
|
||||
]);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user