tslittle / tiffanymaster

0 stars 0 forks source link

LP #1609552 Ability to Update the Provider on a PO #2

Open tslittle opened 4 years ago

tslittle commented 4 years ago

https://bugs.launchpad.net/evergreen/+bug/1609552

Requirements: Button next to provider Cannot replace provider on an activated PO I could see it would be fine if you were using a non-EDI provider, but might be simpler to just leave it at only unactivated POs Should be able to choose from auto-list. Instead of a button, what about an option on the actions menu so that it can be limited to only pending purchase orders, similarly to deleting line items etc. Should be noted in the PO History

Steal from: What happens when a copy barcode is replaced? This is a replacing type of function. Looks like that also has to do a pcrud check to make sure that the new barcode isn’t already in the system. That shouldn’t be a problem here since we’re picking from a predefined list. Although we only want to choose from active providers, so maybe? Check out the current behavior of how you choose a provider. Button actions when you replace the name of the PO Check out when you’re creating a PO and you have to choose the provider. Check out when you change the name on a purchase order Would have to invoke the widget for putting in provider name

Add menu item (only available for pending POs) Calls a pop-up box with the widget for putting in provider name (should have autocomplete field) Closing pop-up box should update provider as shown on PO

/openils/var/templates/acq/common/li_table.tt2 Where the Actions menu items are Does not call to po_view.js which is where you can rename POs

function updatePoName2(value) { PO.name(value); pcrud.update(PO, { oncomplete : function(r, cudResults) { var stat = cudResults[0]; if(stat) dojo.byId('acq-po-view-name').innerHTML = value; } }); }

tslittle commented 3 years ago

Wait until Sprint 4 is done so it's in Angular and I can maybe easily put in a button or something.