Siebel Hospitality Guide > Generating Event Checks > Workflows for Event Checks Functionality >
SHM Post Check Workflow
This workflow process checks whether or not the selected order is associated with an event check. If the order is associated with an event check, then it deletes the line items from the event check, creates new line items including line items for each tax and service charge, and sets the event check status to Posted. Figure 18 shows this workflow.
Figure 18. SHM Post Check
|
Workflow Description. This workflow performs the following actions:
- Is Invoice Id NULL. Verifies whether or not the workflow is called for a valid event check.
- Is Order Closed. Verifies whether or not the workflow is called for a posted event check.
- Is Package Invoice In Trial Status? If any meeting function is part of the current event check, then this step verifies whether or not the calling of this workflow is valid.
NOTE: If a meeting package event check does not have a Status of Trial, then the event check cannot be posted.
- Called for Package Invoice? Verifies the function dates, either for all meeting package functions or for all order functions.
- Have All MP Functions Started. Verifies whether or not the function dates of all the meeting packages are less than or equal to the current date.
- Have All Functions Started. Verifies whether or not the function dates on the order are less than or equal to the current date.
- Have All Functions Started? Decides whether or not to generate a validation error for function dates.
- Clean Up Invoice Items. Deletes the invoice items.
- Called for a Package Invoice 1? Decides whether or not to create invoice items for order function items or meeting function items.
- For Each. Creates invoice items only for order function items that are not part of a meeting package.
- Create Invoice Items for Package Types. Creates invoice items for meeting package types.
- For Each MP Item. Creates invoice items for meeting function items or nonfunction line items.
- Create Invoice Tax Items. Creates taxes and service charges for newly created invoice items.
- Uncheck Refresh Flag. Clears the Refresh flag of the event check that is being posted.
- Update Invoice Status. Assigns a Status of Posted to the event check that is being posted.
- Query for event checks. Queries for other open event checks for the same order as that of the current event check.
- Other Event Checks Exist? Checks whether or not any other open event checks are available.
- UnFreeze Order. Unlocks the event order to so that the Status of the order can be set to Closed.
- Update Order Status. Assigns a Status of Closed to the event order.
- Freeze Order. Locks the event order.
- Is Post Day? If the workflow is invoked by the Post Day functionality, then this step prevents the invoice details from being refreshed by ending the workflow.
- Refresh Invoice Business Component. Refreshes the invoice business component.
Associated Business Service Methods. The following table shows the steps in this workflow that call business service methods.
|
|
|
Have All MP Functions Started |
Have All Functions Started |
SHM Invoice Process |
Have All Functions Started |
Have All Functions Started |
SHM Invoice Process |
Clean Up Invoice Items |
Clean Up Invoice Items |
SHM Invoice Process |
For Each |
Accumulate |
SH For |
Create Invoice Items for Package Types |
Create Package Type Invoice Items |
SHM Invoice Process |
For Each MP Item |
Accumulate |
SH For |
Create Invoice Tax Items |
Create Invoice Tax Items |
SHM Invoice Process |
Update Invoice Status |
Set Status |
SHM Invoice Process |
UnFreeze order |
FreezeReviseOrderForPostCheck |
TNT SHM Order Service |
Update Order Status |
Set Order Status |
SHM Invoice Process |
Freeze order |
FreezeReviseOrderForPostCheck |
TNT SHM Order Service |
Refresh Invoice Business Component |
Refresh Business Component |
SIS OM PMT Service |
|