actindo ->bill__position_add
actindo -> bill__position_add: Add position to bill
Signaturstring bill__position_add( string $sid, int $bill_id, string $art_nr [, float $menge [, product_params $overwrite [, string $serial_numbers [, bool $ignore_nonexisting]]]] )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $bill_id
    Bill-ID
     
  • string $art_nr
    Article-No. of article to add
     
  • float $menge
    Amount
     
  • product_params $overwrite
    product fields which should be overwritten (for example
     
  • string $serial_numbers
    array of serial numbers => array( 'serialno1', 'serialno2', ... )
     
  • bool $ignore_nonexisting
    if false abort if a position cannot be added because it cannot be found (default:true)
     
Returnsstring
on success: array('ok'=>TRUE, 'pos_id'=>int pos id), on failure: array('ok'=>FALSE, 'errno'=>int * error number)
 
DescriptionAdd position to bill

Zur Beachtung:
Alle in $overwrite angegebenen Parameter werden bei der Position überschrieben.
Alle Parameter sind für die Gesamtposition, ausser dem Preis ('preis') und Preisgruppen ('preis_gruppe1',
'preis_range1',...). WICHTIG: Auch der Rabatt ist für die Gesamtposition (nicht für den Einzelartikel!).