Difference between revisions of "Main Page"

From BlisWiki
Jump to navigation Jump to search
Line 32: Line 32:
  
 
Flag Exceptions
 
Flag Exceptions
 +
 
- Set the order status to 1 where all the warehouses are NW or BW and the status is 0 (imported)
 
- Set the order status to 1 where all the warehouses are NW or BW and the status is 0 (imported)
 +
 
- Set the order status to 1 where the status is 0 and the total cost > own cost
 
- Set the order status to 1 where the status is 0 and the total cost > own cost
  
 
Auto release orders
 
Auto release orders
 +
 
- Send WHConfirm for all the orders left on status 0
 
- Send WHConfirm for all the orders left on status 0
  
 
Flag Complete
 
Flag Complete
 +
 
- Set the status for all the auto released orders (status is 0) to 2
 
- Set the status for all the auto released orders (status is 0) to 2

Revision as of 13:07, 24 October 2019

Blis2 - Developed by J3 Systems www.j3systems.co.za.

Scheduled Cron Jobs

Scheduled tasks on a linux operating system are called cron jobs. The cron jobs are managed through the ISPConfig 3 hosting panel.

In Blis2 there are the following cron jobs:

Order Import

The Order Import cron imports all current open orders.

  • Script: crons/import_xml_orders.php
  • API: BlisCost
  • Runtime: 2,7,12,17,22,27,32,37,42,47,52,57 minutes
The following processes take place

Connect to the API and save the XML file, if there are errors stop the processing.

Set the importing flag and start reading the local saved XML file.

Find the Customer's default warehouse.

Check if order exists:

Yes
Delete the order items and update the header.
No
Create the new order and set the status to 0 (import).

Get the costs and calculate item costs

Insert the order items.

Update the Order header.

Flag Exceptions

- Set the order status to 1 where all the warehouses are NW or BW and the status is 0 (imported)

- Set the order status to 1 where the status is 0 and the total cost > own cost

Auto release orders

- Send WHConfirm for all the orders left on status 0

Flag Complete

- Set the status for all the auto released orders (status is 0) to 2