This commit is contained in:
2021-02-23 17:19:34 +00:00
parent 9a5ea6ebd4
commit c4c444d582

View File

@@ -246,7 +246,7 @@
<template v-slot:top> <template v-slot:top>
<v-col cols="12"> <v-col cols="12">
<v-menu offset-y v-if="rights.change"> <v-menu offset-y v-if="rights.change && obj.hasUnreceived">
<template v-slot:activator="{ on, attrs }"> <template v-slot:activator="{ on, attrs }">
<span class="text-h6"> <span class="text-h6">
{{ $ay.t("PurchaseOrderItemList") }}</span {{ $ay.t("PurchaseOrderItemList") }}</span
@@ -338,7 +338,7 @@
<!-- ########################## PURCHASE ORDER ITEM EDIT FORM ###############################--> <!-- ########################## PURCHASE ORDER ITEM EDIT FORM ###############################-->
<template v-if="obj.items.length"> <template v-if="obj.items.length">
<v-row justify="center"> <v-row justify="center">
<v-dialog v-model="editPoItemDialog" persistent> <v-dialog v-model="editPoItemDialog">
<v-card> <v-card>
<v-card-title> <v-card-title>
<!-- <span class="headline">{{ <!-- <span class="headline">{{
@@ -498,10 +498,14 @@
color="blue darken-1" color="blue darken-1"
text text
@click="editPoItemDialog = false" @click="editPoItemDialog = false"
>{{ $ay.t("Cancel") }}</v-btn >{{ $ay.t("Close") }}</v-btn
> >
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn <v-btn
v-if="
obj.items[editPoItemIndex].quantityReceived <
obj.items[editPoItemIndex].quantityOrdered
"
color="blue darken-1" color="blue darken-1"
text text
@click="receive(obj.items[editPoItemIndex])" @click="receive(obj.items[editPoItemIndex])"
@@ -1110,7 +1114,7 @@ function receiveItem(item, vm) {
item.quantityReceived = item.quantityOrdered; item.quantityReceived = item.quantityOrdered;
item.receivedDate = window.$gz.locale.nowUTC8601String(); item.receivedDate = window.$gz.locale.nowUTC8601String();
vm.obj.hasReceipt = true; vm.obj.hasReceipt = true;
vm.formState.dirty=true; vm.formState.dirty = true;
} }
} }