Signatur | string product__search2( string $sid [, int $bill_id [, int $deb_kred_id [, string $currency [, string $date [, int $wg_id [, string $type [, ajax_search_query $request [, int $pgruppe [, boolean $get_properties [, boolean $get_stock_by_lager_id]]]]]]]]]] ) |
|
Parameter | - string $sid
Session identier you got from auth__login or auth__token_login - int $bill_id
Bill-ID, 0 for ignore. (If set, overrides $deb_kred_id, $date and $currency!) - int $deb_kred_id
Customer-No, 0 for ignore - string $currency
Currency you want the price to be in, '' for ignore - string $date
Date you want the price at (important also for currency conversion!!!), '' for ignore - int $wg_id
Warengruppen-ID, 0 for ignore - string $type
Type of product to search ('Lief' for Lieferung, 'Leist' for Leistung, 'NLeist' for Nebenleistung (Verpackung, Versand,...)) - ajax_search_query $request
Request and search array - int $pgruppe
Preisgruppe - boolean $get_properties
Get properties, verfügbar seit __TICKET_NAME_RSAPI-2__ - boolean $get_stock_by_lager_id
Get stock data, verfügbar seit __TICKET_NAME_RSFK-40__
|
Returns | string Result-Array( 'ok'=>TRUE/FALSE, 'n_rows'=>int, 'data'=>array of arrays )
|
Description | Search thru products, zuletzt geändert am __TICKET_NAME_RSFK-40__
It might be important to pass $bill_id or $deb_kred_id or $currency or $date so you always get the right prices for the customer group.
If you want nothing fancy, set as 0
|