FIX: Moved code to where the variable is defined
This commit is contained in:
parent
64da1b1dc0
commit
9a141215bb
@ -137,17 +137,18 @@ if ($result) {
|
|||||||
$tabpay = array ();
|
$tabpay = array ();
|
||||||
$tabbq = array ();
|
$tabbq = array ();
|
||||||
$tabtp = array ();
|
$tabtp = array ();
|
||||||
$tabcompany[$obj->rowid] = array (
|
|
||||||
'id' => $obj->socid,
|
|
||||||
'name' => $obj->name,
|
|
||||||
'code_client' => $obj->code_compta
|
|
||||||
);
|
|
||||||
$tabtype = array ();
|
$tabtype = array ();
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
while ( $i < $num ) {
|
while ( $i < $num ) {
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
|
|
||||||
|
$tabcompany[$obj->rowid] = array (
|
||||||
|
'id' => $obj->socid,
|
||||||
|
'name' => $obj->name,
|
||||||
|
'code_client' => $obj->code_compta
|
||||||
|
);
|
||||||
|
|
||||||
// Controls
|
// Controls
|
||||||
$compta_bank = $obj->account_number;
|
$compta_bank = $obj->account_number;
|
||||||
if ($obj->label == '(SupplierInvoicePayment)')
|
if ($obj->label == '(SupplierInvoicePayment)')
|
||||||
@ -580,4 +581,4 @@ if ($action == 'export_csv') {
|
|||||||
// End of page
|
// End of page
|
||||||
llxFooter();
|
llxFooter();
|
||||||
}
|
}
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user