Schedule installation #49
Reference in New Issue
Block a user
Delete Branch "schedule-installation-new"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
SMOKE TEST :
Prep :
Create 3 or 4 suppliers
Supplier is not user it is an organization. Since we know it is a supplier you can directly use
wiaas_get_organization_nameto get its name.There is no need to have
Orderin file or class name,Delivery Processis enoughFor product supplier is a taxonomy. We only use fields to assign product to supplier term. So use taxonomy methods to retrieve supplier for product.
Use
For every order supplier we need to have information which simple line items he is delivering.
We could probably use ACF field to collect this info for package. We should update ACF field group for package/bundle
Bundle Propertiesand add another input to save this property.We will probably not be displaying this flow on order page, instead only have link to delivery process page. use
get_entry_urlmethod on current stepSince these dates are related strictly to delivery process we should probably be adding them to delivery process instance (which is actually single form entry).
After moving this box to delivery process page we will be strictly working with delivery process for that order and not order metadata.
(Form entry can be extended with custom metadata for storing custom values for that entry irrelevant to actual form fields)
This is display formatting action that should be done in view like
$final_estimated_date = $final_estimated_date ? '-' : date('Y-m-d', $final_estimated_date)instead of here where only data should be collected and prepared for display in view.Global delivery date and global estimated date is confusing and it is not clear at all that they are for single order. Instead we should be just using delivery date and estimated delivery date notation. It is implicit then that this means for whole order.
Delivery and estimated dates for specific supplier should then called order_supplier_delivery_date and order_supplier_estimated_delivery_date. So:
order_delivery_date, order_estimated_delivery_date
order_supplier_delivery_date, order_supplier_estimated_delivery_date
As said before use ACF for saving this property from product page.
Move this code to
wiaas-delivery-processs.jsand then you can render this very small code snipped directly in hook method.changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
changed this line in version 2 of the diff
added 7 commits
Compare with previous version
changed this line in version 3 of the diff
changed this line in version 3 of the diff
added 30 commits
master69c74d93- order delivery processb91341c5- add missing filedbddcd47- add delivery process9aa3b3d0- temporarily remove additional delivery process1f03563d- replace buttons with dropdownf8dd5f1d- add additional days prior installation field to bundle9956a94c- remove debugging outpute6b6f6c1- add additional fields to orderd6c5a36e- handle delivery schedule dates9e4ee644- change styleb3ba1889- use existing function to get supplier name3e432454- rename files and classes8eeb3b99- use order update meta3af91a71- use acf field for additional days prior installationf8e3cc58- move formatting to viewc08c393b- use taxonomy for supplier ida059f4b8- save items related to supplier in supplier list2a3f2f82- fix formatting93e17817- move date selection to workflow01b35dba- rename24e8515b- show link to delivery process pageCompare with previous version
merged
mentioned in commit
388f7df8a8