actindo ->product__get_bestand
actindo -> product__get_bestand: get products stock, optionally depending on storage (Artikelbestand holen, optional für ein bestimmtes Lager)
Signaturstring product__get_bestand( string $sid, int $art_id [, int $lager_id [, string $booktype [, int $ignore_bill_id]]] )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $art_id
    product id
     
  • int $lager_id
    storage id, or null for all - defaults to null
     
  • string $booktype
    book type - defaults to null
     
  • int $ignore_bill_id
    ignore certain bill (0 for don't) - defaults to 0
     
Returnsstring
array('ok'=>TRUE/FALSE, 'bestand'=>products stock)
 
Descriptionget products stock, optionally depending on storage (Artikelbestand holen, optional für ein bestimmtes Lager)

Holt den Lagerbestand, bzw. Verfügbarkeit d. Artikels je nach $booktype:
Für $booktype zulässige Werte:
- 'COUNT': Holt den BESTAND des Artikels aus dem Lager
- 'COUNTAVAIL': Holt den VERFÜGBAREN BESTAND des Artikels aus dem Lager (Bestand+'RESERVE')
- 'RESERVE': Holt die aktuell Reservierte Menge des Artikels. Achtung: Reservierung ist < 0!
- 'ORDER': Holt die aktuell Bestellte Menge des Artikels. Achtung: Order ist > 0!
- '' oder null: Holt VERFÜGBARKEIT des Artikels aus dem Lager (Bestand+'RESERVE'+'ORDER')