Plugin Directory

Changeset 2883312


Ignore:
Timestamp:
03/20/2023 09:00:04 AM (3 years ago)
Author:
sprintlogistics
Message:

create api for update waybills status

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sprint/trunk/includes/Ajax/ERP_SPRINT_Ajax_Service.php

    r2883301 r2883312  
    9494 
    9595  public function erp_sprint_update_waybill($req) {
     96    if (!isset($req['waybillNumber'])) {
     97      return array('result' => 'Error', 'messageType'=>'waybillNumber is missing');
     98    }
     99    if (!isset($req['status'])) {
     100      return array('result' => 'Error', 'messageType'=>'status is missing');
     101    }
    96102    $waybillNumber = $req['waybillNumber'];
    97103    $status = $req['status'];
Note: See TracChangeset for help on using the changeset viewer.