Franchise Order Close (wf_orders_close_job)
Module Name |
wf_orders_close_job |
Description |
Franchise Order Close |
Functional Area |
Franchise Management |
Module Type |
Admin - Ad hoc |
Module Technology |
Background Processing |
Catalog ID |
N/A |
Wrapper Script |
b8dwrap.ksh |
Design Overview
This background job is composed of two-step processing. It will have a threading assignment and a business logic processing.
Thread assignment program will filter eligible records from franchise order header table based on its conditions are met:
-
Franchise Order is not in Input (I) or Requires Credit Approval (R) status.
-
All the transfers associated with the franchise order are in closed/deleted status.
-
All the allocations associated with franchise order are in closed status.
-
All the purchase orders associated with franchise order are in closed status.
-
Store orders associated with franchise order do not have a null processed date or a need qty > 0.
These records are chunked and Thread ID is assigned for each. They will be stored temporarily in a staging table.
The Business logic program will process all records from the staging table. Using bulk processing, this program will update the records from franchise order header table to "D" (Closed) status. It will free up and clean the staging table afterwards. There is a STOP ON NEXT feature in bulk processing (through a loop) where Administrators can stop this batch with a flip of this indicator.
Key Tables Affected
Table 18-1 Key Tables Affected
Table | Select | Insert | Update | Delete |
---|---|---|---|---|
PERIOD |
Yes |
No |
No |
No |
RMS_BATCH_STATUS |
Yes |
No |
No |
No |
B8D_PROCESS_CONFIG |
Yes |
No |
No |
No |
JOB_AUDIT_LOGS |
No |
Yes |
No |
No |
B8D_WF_ORDERS_CLOSE_STG |
Yes |
Yes |
No |
Yes |
WF_ORDER_HEAD |
Yes |
No |
Yes |
No |
TSFHEAD |
Yes |
No |
No |
No |
STORE_ORDERS |
Yes |
No |
No |
No |
ORDHEAD |
Yes |
No |
No |
No |
ALLOC_DETAIL |
Yes |
No |
No |
No |
ALLOC_HEADER |
Yes |
No |
No |
No |