diff --git a/ayanova/devdocs/todo.txt b/ayanova/devdocs/todo.txt index 31d00c49..567f2785 100644 --- a/ayanova/devdocs/todo.txt +++ b/ayanova/devdocs/todo.txt @@ -188,11 +188,6 @@ todo: how to add locale keys in future after release without erasing all data? CURRENTLY DOING: PurchaseOrder - restock required -todo: if poitem has woitempartrequest (is a part request) - quantity can not be any different than the requested amount, that entire line item must be dedicated to the part request which makes - restock reports etc much easier to handle - can code this now even though the wo is not there yet as potiem already has that field, in fact I think it's done already but double check - todo: can edit po number but if I set an existing po number 4 to 23 for example and the last autogenerated is 22 it will happily make another 23 so there are now two what I want to happen is it skips existing numbers Research this method and how I can work with it and give it a good think because it maybe a dangerous thing to expose or just fuckery diff --git a/ayanova/src/views/inv-purchase-order.vue b/ayanova/src/views/inv-purchase-order.vue index dbf84a48..48d1686d 100644 --- a/ayanova/src/views/inv-purchase-order.vue +++ b/ayanova/src/views/inv-purchase-order.vue @@ -9,9 +9,7 @@ @@ -932,6 +929,9 @@ export default { serverError: {} }, rights: window.$gz.role.defaultRightsObject(), + canEditSerial: window.$gz.role.hasRole([ + window.$gz.role.AUTHORIZATION_ROLES.BizAdminFull + ]), ayaType: window.$gz.type.PurchaseOrder, currencyName: window.$gz.locale.getCurrencyName(), timeZoneName: window.$gz.locale.getResolvedTimeZoneName(),