Submit Supply Orders
Executive Summary
Submit Supply Orders is where closed supply orders are gathered into a submission for a vendor and turned into the file that is sent to the vendor (Apetito). Staff start a submission by choosing a supply vendor, the date the order is placed with the vendor, the delivery date required by the vendor, and the range of client delivery dates to include. The submission opens as Open. On the submission's detail page you pull in the Closed supply orders whose client delivery date falls in the range, remove any that should not be included, and then create the submission file. Creating the file marks the submission Submitted and downloads the file. A submission can be reopened for corrections, exported to Excel, and, once submitted, written out as a JSON file. The agency details that go into the file are kept in the page settings.
Key Features
- Start a submission for a vendor with an order date, required delivery date and client delivery date range
- Pull in all Closed supply orders in the delivery date range that are not already on another submission
- Remove individual orders from an Open submission
- See quantity totals by product category
- Create the vendor submission file, which is downloaded and kept with the submission for later download
- Reopen a submitted batch to correct it, which discards the file
- Export the submission to Excel
- Write a JSON file of the submitted orders, rolled up by client and product
- Configure the agency name and Apetito contact details used in the files
Typical Workflow
- Click Start A New Report, choose the vendor and the dates, and click Ok.
- Open the new submission with the edit icon in Manage Records (or right-click the row and choose Edit).
- Click Refresh Supply Orders to pull in the Closed orders in the delivery date range. Delete any order that should not be included.
- Click Create Submission File and confirm. The file is downloaded and the status changes to Submitted.
- Use Export for an Excel copy, or Write JSON File for the JSON version. Use Reopen if corrections are needed.
- Back on the main list, use the download icon to download a submission's file again.
Configurable Settings
Open View Settings or Edit Settings from this screen (when permitted) to change these options.
| Group | Setting | Type | Purpose |
|---|---|---|---|
| General | Account Statement Agency Name | Text | Agency name written into the submission file and used in the file name. |
| Apetito | Apetito Agency ID | Text | Agency identifier written into the submission file and used in the file name. |
| Apetito | Apetito Agency Contact | Text | Contact person written into the submission file. |
| Apetito | Apetito Agency Contact Phone | Text | Contact phone number written into the submission file. |
| Apetito | Apetito Agency Contact Email | Text | Contact email address written into the submission file. |
Available Permissions
The following permissions are available to be assigned to AlayaCare Roles:
| Attribute | What It Controls |
|---|---|
| View | Open the page and its submission detail pages |
| Settings View | Open View Settings to see the page configuration |
| Settings Edit | Open Edit Settings and change the page configuration |
Main Grid
Lists every submission, newest first (14 rows per page).
| Column | Description |
|---|---|
| Vendor | Code of the supply vendor. |
| Status | Open while orders can still be added or removed, Submitted once the file has been created. |
| File Name | Name of the submission file, blank until the file has been created. |
| From Visit Delivery Date | Start of the client delivery date range. |
| To Visit Delivery Date | End of the client delivery date range. |
| Added | When the submission was started, in your time zone. |
| Added By | The user who started the submission. |
| Manage Records | Download icon and Edit icon. |
Actions
| Button | Description |
|---|---|
| Start A New Report | Opens the Start A New Report dialog. |
| View Settings | Opens the page settings in read-only mode (when settings view is permitted). |
| Edit Settings | Opens the page settings for editing (when settings edit is permitted). |
| Download icon (Manage Records) | Downloads the submission file. Does nothing when the file has not been created yet. |
| Edit icon (Manage Records) | Opens the submission's detail page. |
| Edit (right-click a row) | Opens the submission's detail page. |
Dialog Components
Start A New Report
Opens from Start A New Report. All fields are required, and a warning is shown naming the first one that is missing.
| Field | Purpose |
|---|---|
| Select A Supply Vendor | The vendor the submission is for. |
| Date Order Placed With Vendor | The order date written into the submission file. |
| Required Delivery Date From Vendor | The delivery date requested from the vendor, written into the submission file. |
| Choose a Range of Client Delivery Dates | The range of client delivery dates whose orders belong on this submission. The range runs from the start of the first day to the end of the last day. |
Click Ok to create the submission. See Processing Overviews.
Submit Supply Order (submission detail page)
Opens from the edit icon or the right-click Edit on a submission.
The top of the page shows the submission's ID, Vendor, From Scheduled Visit Delivery Date, To Scheduled Visit Delivery Date, Added, Added By, Status and Filename. A Category / Quantity table beside it totals the quantity ordered per product category across the orders on the submission.
Buttons
| Button | Description |
|---|---|
| Create Submission File | Shown while the submission is Open and has at least one order. Asks for confirmation, then builds and downloads the file. |
| Reopen | Shown when the submission is Submitted. Asks for confirmation, then returns it to Open and discards the file. |
| Refresh Supply Orders | Shown while the submission is Open. Adds the Closed orders in the delivery date range. |
| Export | Exports the submission to Excel. |
| Write JSON File | Shown when the submission is Submitted. Downloads a JSON file of the orders. |
Tabs
| Tab | Purpose |
|---|---|
| Orders | The orders included on the submission. |
Orders — Grid
| Column | Description |
|---|---|
| Order Id | Order number. |
| Client Last Name | Client last name. |
| Client First Name | Client first name. |
| Service Code | Service code on the order. |
| Expected Line Item Qty | Expected line item quantity of the order. |
| Delivery Date/Time | Client delivery date and time, in your time zone. |
| Manage Records | Delete icon. |
The grid is sorted by client name then delivery date, 14 rows per page.
Orders — Grid Actions
| Button | Description |
|---|---|
| Delete icon / Delete (right-click a row) | Removes the order from the submission after confirmation. Only allowed while the submission is Open; otherwise the warning "You cannot delete an order from this submission" is shown. The order itself is not deleted. |
Dependencies
The following tables must be configured for lookups on this view to work:
| Table | Description |
|---|---|
| Facilities | Used to find the route name written to the JSON file from the facility on each order's visit. |
| Supply Vendors | Vendors offered in the Start A New Report dialog. The vendor's billing method decides whether a file is produced. Also covers its supply vendor products: product ID, description, quantity per case and category for each ordered product, used for category totals and in the submission file. |
Processing Overviews
This section describes what happens after you confirm a processing action.
Start A New Report
- Requires a vendor, an order date, a delivery date and a client delivery date range. Otherwise a warning is shown and the dialog stays open.
- Saves a new submission with the status Open, the chosen vendor and dates, the current date and time and your user.
- Refreshes the list. No orders are attached until Refresh Supply Orders is used.
Refresh Supply Orders
- Finds every Closed supply order whose client delivery date falls in the submission's range.
- Adds each one that is not already on any submission (including other submissions).
- Refreshes the order list.
Create Submission File
- Looks up the vendor, and stops with "Vendor Not Found" if it is missing.
- Records the processing start time on the submission.
- Reads the agency name, Apetito agency ID and Apetito contact details from the page settings.
- When the vendor's billing method is Scheduled Visit, builds a text file made up of a header, an agency identifier line, an order header (submission number, order date, required delivery date and total item quantity), and then for each order a client identifier line, a client order header and one detail line per product (product ID, description, quantity per case and quantity ordered), followed by an end-of-file line. Client identifiers are built from the client's AlayaCare ID with a tenant prefix.
- When the vendor's billing method is Visit Premiums, no file content is produced.
- Names the file ALAYACARE_TO_APETITO_{agency ID}{agency name}{year}{month}{day}_{HHmm}.txt using the date the submission was added, saves it on the submission, sets the status to Submitted and downloads it.
Reopen
- Sets the status back to Open and records who reopened it and when.
- Clears the saved file and file name, so the file must be created again.
Export
- Builds an Excel workbook with three sheets: General (submission details), Category Totals and Total Orders (the order list).
- Downloads it as submitsupplyorders_{date and time}.xlsx and shows "Exported Successfully".
Write JSON File
- Goes through the orders on the submission and, for orders that have an AlayaCare visit, looks up the visit's facility and uses its name as the route.
- Rolls up standard orders into one entry per client with quantities totalled by product. Orders for the two special accounts (cash and carry, and inventory) are listed individually and are not rolled up.
- Downloads the result as ALAYACARE_TO_APETITO_{agency ID}{agency name}{year}{month}{day}_{HHmm}.json.