basin naa moy ma hatag code para pag update... wah pa man jud nako nakuha.. ang iya ra FORM ENTRY AKO NAKUHA>> I WILL ALSO POST IYA FORM ENTRY..
mao ni ang GUI sa entry UPDATE..
UPDATE PROGRAM FLOW
- input the OR number and search in the ORHeader. if it is found and the status is 'OP', display all information about the OR. otherwise,display not found error.
- Display the original items in the first flexgrid (above). Item unit price should be computed based on the total price of the item divided by the number of item.
- Display the items to be update in the second flexgrid(below)
- Customer Code (follow customer code restrictions in the entry)
- date (follow date restrictions in the entry)
- item quantity of the items display in the OR (quantity may be zero or above.)
- prepared by (follow prepared by restrictions in the entry)
- CLICK UPDATE
- if all data are correct, update the ORHEADER and ORDETAIL. ORHEADER status is 'CL' if the quantity of all items in the OR is zero. otherwise, it is 'OP'
- if some data are incorrect, do not continue saving rather issue an error message.
- CLICK CLEAR
- Erase all data values in the txtboxes, labels and flexgrid