actindo ->bill__copy
actindo -> bill__copy: Copy bill
Signaturstring bill__copy( string $sid, int $bill_id, string $new_type [, boolean $no_parent_id [, boolean $allow_duplicate]] )
 
Parameter
  • string $sid
    Session identier you got from auth__login or auth__token_login
     
  • int $bill_id
    bill id
     
  • string $new_type
    type for new bill ('AN','RE','RB','AB',...)
     
  • boolean $no_parent_id
    FALSE: group bill, TRUE: don't group bill
     
  • boolean $allow_duplicate
    TRUE: If the value is FALSE AND $no_parent_id=TRUE no duplicate bill type will
     
Returnsstring
standard return array
 
DescriptionCopy bill

Copy an existing bill to a new one where the bill type can be the same or another one.
By default, the existing bill and the new bill will be grouped - that means they'll belong to the same bill
chain. If you don't want that, you have to set $no_parent_id to TRUE