actindo ->bill__check_stock_status
actindo -> bill__check_stock_status: Check stock status for given Bill ID, available since __TICKET_NAME_RSFK-306__
Signaturstring bill__check_stock_status( string $sid, int $bill_id )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $bill_id
    Bill-ID
     
Returnsstring
array( * 'ok' => bool, * 'deliver_status' => NO|NODISPATCH|PARTLY|FULL|ERROR, * 'deliver_error' => deliver error message in case of deliver_status='ERROR', * 'stock_status' => NO|PARTLY|FULL|ERROR, * 'dropshipping_status' => NO|PARTLY|FULL, * 'lieferquote_monetary' => 0-100, * 'lieferquote_amount' => 0-100, * 'have_open_li' => 0|1, * 'lieferscheine' => array of delivery notes (if available), * 'artikel' => array of positions (grouped by product number))
 
DescriptionCheck stock status for given Bill ID, available since __TICKET_NAME_RSFK-306__

this function not only checks the stock status for all bill positions, but also updates the bills deliver status at the same time