Signatur | string product__search( string $sid, int $bill_id, int $deb_kred_id, string $currency, string $date, int $wg_id, string $type, ajax_search_query $request ) |
|
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
|
Returns | string Array of Products, or FALSE or NULL on error
|
Description | Search thru products
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
|