Signatur | string bill__create_from_payment_type( string $sid [, string $payment_type [, string $belegnr [, string $customer [, string $positions [, bool $ignore_nonexisting [, ext_order_values $ext_order_values [, int|null $allow_partial_delivery [, numberranges_data $numberranges_data]]]]]]]] ) |
Parameter |
|
Returns | string Array( 'ok'=>TRUE/FALSE, 'error', 'bill_id', 'type', 'belegnr', 'uid', 'positions' ) |
Description | Create bill from payment type, optionally try to use specific belegnr, last modified __TICKET_NAME_RSFK-207__ Creates a bill and tries to use $belegnr (if given). If $belegnr is already in use, use next free belegnr by calling get_free_belegnr() The numberranges_data array may contain the following parameters dk_land dk_delivery_land contract_source webshop_order_shop_id $webshop_order_subshop_id ext_order_type ext_order_account_id ext_order_sub_account_id The ext_order_values array may contain the following parameters type account_id sub_account_id id external_id payment_order_id payment_type date time status status_msg |