Skip to main content

Order templates

Use this when you have routes that repeat regularly, for example a vehicle leaving the warehouse for deliveries at 8 a.m. every morning. Turn on the schedule once, and the system creates orders automatically on each run day. You do not need to create orders by hand every day.

Create a Truck B2B order→Turn on "Lịch định kỳ" (Recurring schedule): weekdays, time, duration→The template appears in Mẫu lên đơn (Order templates)→On each run day: the system creates the order automatically→New order in Quản lý đơn hàng (Order management)
If it fails: a warning at the top of the page + Xem log (View log)

Create a new template​

Templates are not created directly on this page. To create one:

Go to Lên đơn › Truck B2B — Doanh nghiệp (Create order › Truck B2B — Business)

Enter the route and choose the vehicle and service as for a normal Truck B2B order. See Truck B2B.

Turn on Lịch định kỳ (Recurring schedule)

Choose the run days and the order creation time, then create the order.

The order becomes a template and appears on the Mẫu lên đơn (Order templates) page.

Template list​

Order templates page: status filter, 2 warning lines and the template list
  1. Date range, filters by template creation date
  2. Filter by status, with template counts
  3. Warning: templates with errors on the last run
  4. Warning: templates whose time window is about to end
  5. Template name, status label and error count
  6. Service: vehicle type, shift package, price per shift
  7. Frequency: run weekdays, duration, order creation time
  8. Last cronjob result · Xem log (View log)
  9. Edit · Pause / Resume · Archive
Order templates page: status filter, 2 warning lines and the template list

The list is filtered by template creation date. Cannot find an older template? Widen the date range. The number next to Mẫu lên đơn (Order templates) in the left menu is the number of templates that need attention.

What does each template include?​

ColumnContent
Mẫu & đơn gốc (Template & original order)Route name (e.g. Kho Củ Chi → 1 điểm (Cu Chi warehouse → 1 point)), status label, error count, origin, template code, creation date and number of orders generated
Dịch vụ (Service)Vehicle type (e.g. Van 1000kg), shift package (4H, 12H…) and price per shift
Tần suất (Frequency)Run weekdays (T2 → CN, Mon → Sun; highlighted days are run days), template duration, order creation time, and Kế tiếp (Next): the next run
Vendor / Tài xế (Vendor / Driver)Fixed transport vendor and driver, or Vendor tự phân công (Vendor assigns)
CronjobResult of the last run, with Xem log (View log)

Template statuses​

Filter quickly with the buttons at the top of the page: Tất cả · Đang chạy · Tạm dừng · Có lỗi · Lưu trữ (All · Running · Paused · Has errors · Archived), each with a template count.

Label on the templateMeaning
Đang chạy (Running)The template is creating orders on schedule
Tạm dừng (Paused)Paused manually, not creating orders
Sắp hết hạn (Expiring soon)The template's duration is about to end; extend it
N lỗi (N errors)Number of recent runs that failed
(filter) Lưu trữ (Archived)Templates no longer in use, put away

The three action buttons at the end of each row: Sửa mẫu (Edit template) · Tạm dừng (Pause) (for a paused template it is Tiếp tục (Resume)) · Lưu trữ (Archive).

Check the warnings every morning​

Do not ignore the 2 warning lines at the top of the page

1. "… mẫu có lỗi ở lần chạy gần nhất" (… templates had errors on the last run) Click Xem log (View log) to see why. The cronjob still runs normally next time, but the order for the failed day will not be created. You need to place a make-up order for that day yourself.

2. "… mẫu sắp hết cửa sổ thời gian" (… templates are about to reach the end of their time window) Extend them before the expiry date. Once expired, a template stops generating orders, with no notification.

Common errors​

The Cronjob column shows the error from the last run. Click Xem log (View log) for details.

Error shownCommon causeWhat to do
Failed (INVALID_LOCATION)An address in the template is invalidClick Sửa mẫu (Edit template) and pick the address again on the map
Navigation Unavailable (NAVIGATION_UNAVAILABLE)The route could not be calculatedCheck the points in the route again; if the error persists, contact Ahamove
Thao tác thất bại (SYSTEM_ERROR)A system error on that runPlace a make-up order for the failed day; if it keeps happening, contact Ahamove