Fix error
This commit is contained in:
parent
6982997de5
commit
fbd7dc66b2
@ -162,10 +162,10 @@ if ($action == 'update') {
|
|||||||
$sql .= " SET accountancy_code_buy = ".$accounting->account_number;
|
$sql .= " SET accountancy_code_buy = ".$accounting->account_number;
|
||||||
}
|
}
|
||||||
if ($accounting_product_mode == 'ACCOUNTANCY_BUY_INTRA') {
|
if ($accounting_product_mode == 'ACCOUNTANCY_BUY_INTRA') {
|
||||||
$sql .= " SET accountancy_code_buy = ".$accounting->account_number;
|
$sql .= " SET accountancy_code_buy_intra = ".$accounting->account_number;
|
||||||
}
|
}
|
||||||
if ($accounting_product_mode == 'ACCOUNTANCY_BUY_EXPORT') {
|
if ($accounting_product_mode == 'ACCOUNTANCY_BUY_EXPORT') {
|
||||||
$sql .= " SET accountancy_code_buy = ".$accounting->account_number;
|
$sql .= " SET accountancy_code_buy_export = ".$accounting->account_number;
|
||||||
}
|
}
|
||||||
if ($accounting_product_mode == 'ACCOUNTANCY_SELL') {
|
if ($accounting_product_mode == 'ACCOUNTANCY_SELL') {
|
||||||
$sql .= " SET accountancy_code_sell = ".$accounting->account_number;
|
$sql .= " SET accountancy_code_sell = ".$accounting->account_number;
|
||||||
@ -594,10 +594,10 @@ if ($result)
|
|||||||
if ($obj->accountancy_code_buy && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
if ($obj->accountancy_code_buy && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
||||||
} elseif ($accounting_product_mode == 'ACCOUNTANCY_BUY_INTRA') {
|
} elseif ($accounting_product_mode == 'ACCOUNTANCY_BUY_INTRA') {
|
||||||
print length_accountg($obj->accountancy_code_buy_intra);
|
print length_accountg($obj->accountancy_code_buy_intra);
|
||||||
if ($obj->accountancy_code_sell && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
if ($obj->accountancy_code_buy_intra && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
||||||
} elseif ($accounting_product_mode == 'ACCOUNTANCY_BUY_EXPORT') {
|
} elseif ($accounting_product_mode == 'ACCOUNTANCY_BUY_EXPORT') {
|
||||||
print length_accountg($obj->accountancy_code_buy_export);
|
print length_accountg($obj->accountancy_code_buy_export);
|
||||||
if ($obj->accountancy_code_sell && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
if ($obj->accountancy_code_buy_export && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
||||||
} elseif ($accounting_product_mode == 'ACCOUNTANCY_SELL') {
|
} elseif ($accounting_product_mode == 'ACCOUNTANCY_SELL') {
|
||||||
print length_accountg($obj->accountancy_code_sell);
|
print length_accountg($obj->accountancy_code_sell);
|
||||||
if ($obj->accountancy_code_sell && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
if ($obj->accountancy_code_sell && empty($obj->aaid)) print ' '.img_warning($langs->trans("ValueNotIntoChartOfAccount"));
|
||||||
|
|||||||
@ -487,8 +487,8 @@ if ($result) {
|
|||||||
}
|
}
|
||||||
if (empty($objp->code_buy_l) && empty($objp->code_buy_p)) $code_buy_p_notset = 'color:red';
|
if (empty($objp->code_buy_l) && empty($objp->code_buy_p)) $code_buy_p_notset = 'color:red';
|
||||||
|
|
||||||
// $objp->code_sell_l is now default code of product/service
|
// $objp->code_buy_l is now default code of product/service
|
||||||
// $objp->code_sell_p is now code of product/service
|
// $objp->code_buy_p is now code of product/service
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user