Difference between revisions of "Main Page"

From BlisWiki
Jump to navigation Jump to search
Line 14: Line 14:
 
:* <strong>Runtime:</strong> 2,7,12,17,22,27,32,37,42,47,52,57 minutes
 
:* <strong>Runtime:</strong> 2,7,12,17,22,27,32,37,42,47,52,57 minutes
  
; The following takes place
+
; The following processes take place
wfwsefwe
+
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 1 (new)
 +
Get the costs and calculate item costs
 +
Insert order items
 +
Update the Order header
 +
Flag Exceptions
 +
-- TEST --

Revision as of 12:51, 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 1 (new) Get the costs and calculate item costs Insert order items Update the Order header Flag Exceptions -- TEST --