Accountancy - Some fix
This commit is contained in:
parent
e7c044cc05
commit
347537a205
@ -152,7 +152,7 @@ if ($action == 'update') {
|
|||||||
}
|
}
|
||||||
if ($result <= 0) {
|
if ($result <= 0) {
|
||||||
// setEventMessages(null, $accounting->errors, 'errors');
|
// setEventMessages(null, $accounting->errors, 'errors');
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Product").' '.$productid.' '.$langs->trans("NotVentilatedinAccount").' : id='.$accounting_account_id.'<br/> <pre>'.$sql.'</pre></font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Product").' '.$productid.' '.$langs->trans("NotVentilatedinAccount").' : id='.$accounting_account_id.'<br/> <pre>'.$sql.'</pre></span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
} else {
|
} else {
|
||||||
$db->begin();
|
$db->begin();
|
||||||
|
|||||||
@ -142,7 +142,7 @@ if (empty($reshook))
|
|||||||
if ($massaction == 'ventil') {
|
if ($massaction == 'ventil') {
|
||||||
$msg = '';
|
$msg = '';
|
||||||
|
|
||||||
//print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>';
|
//print '<div><span style="color:red">' . $langs->trans("Processing") . '...</span></div>';
|
||||||
if (!empty($mesCasesCochees)) {
|
if (!empty($mesCasesCochees)) {
|
||||||
$msg = '<div>'.$langs->trans("SelectedLines").': '.count($mesCasesCochees).'</div>';
|
$msg = '<div>'.$langs->trans("SelectedLines").': '.count($mesCasesCochees).'</div>';
|
||||||
$msg .= '<div class="detail">';
|
$msg .= '<div class="detail">';
|
||||||
@ -157,7 +157,7 @@ if ($massaction == 'ventil') {
|
|||||||
|
|
||||||
if ($monCompte <= 0)
|
if ($monCompte <= 0)
|
||||||
{
|
{
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NoAccountSelected").'</font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("Lineofinvoice", $monId).' - '.$langs->trans("NoAccountSelected").'</span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
} else {
|
} else {
|
||||||
$sql = " UPDATE ".MAIN_DB_PREFIX."facturedet";
|
$sql = " UPDATE ".MAIN_DB_PREFIX."facturedet";
|
||||||
@ -165,14 +165,14 @@ if ($massaction == 'ventil') {
|
|||||||
$sql .= " WHERE rowid = ".((int) $monId);
|
$sql .= " WHERE rowid = ".((int) $monId);
|
||||||
|
|
||||||
$accountventilated = new AccountingAccount($db);
|
$accountventilated = new AccountingAccount($db);
|
||||||
$accountventilated->fetch($monCompte, '');
|
$accountventilated->fetch($monCompte, '', 1);
|
||||||
|
|
||||||
dol_syslog("accountancy/customer/list.php sql=".$sql, LOG_DEBUG);
|
dol_syslog("accountancy/customer/list.php sql=".$sql, LOG_DEBUG);
|
||||||
if ($db->query($sql)) {
|
if ($db->query($sql)) {
|
||||||
$msg .= '<div><font color="green">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("VentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'</font></div>';
|
$msg .= '<div><span style="color:green">'.$langs->trans("Lineofinvoice", $monId).' - '.$langs->trans("VentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'</span></div>';
|
||||||
$ok++;
|
$ok++;
|
||||||
} else {
|
} else {
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NotVentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'<br> <pre>'.$sql.'</pre></font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Lineofinvoice", $monId).' - '.$langs->trans("NotVentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'<br> <pre>'.$sql.'</pre></span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -124,7 +124,7 @@ include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
|
|||||||
|
|
||||||
if ($massaction == 'ventil') {
|
if ($massaction == 'ventil') {
|
||||||
$msg = '';
|
$msg = '';
|
||||||
//print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>';
|
//print '<div><span style="color:red">' . $langs->trans("Processing") . '...</span></div>';
|
||||||
if (!empty($mesCasesCochees)) {
|
if (!empty($mesCasesCochees)) {
|
||||||
$msg = '<div>'.$langs->trans("SelectedLines").': '.count($mesCasesCochees).'</div>';
|
$msg = '<div>'.$langs->trans("SelectedLines").': '.count($mesCasesCochees).'</div>';
|
||||||
$msg .= '<div class="detail">';
|
$msg .= '<div class="detail">';
|
||||||
@ -139,7 +139,7 @@ if ($massaction == 'ventil') {
|
|||||||
|
|
||||||
if ($monCompte <= 0)
|
if ($monCompte <= 0)
|
||||||
{
|
{
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NoAccountSelected").'</font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NoAccountSelected").'</span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
} else {
|
} else {
|
||||||
$sql = " UPDATE ".MAIN_DB_PREFIX."expensereport_det";
|
$sql = " UPDATE ".MAIN_DB_PREFIX."expensereport_det";
|
||||||
@ -147,14 +147,14 @@ if ($massaction == 'ventil') {
|
|||||||
$sql .= " WHERE rowid = ".$monId;
|
$sql .= " WHERE rowid = ".$monId;
|
||||||
|
|
||||||
$accountventilated = new AccountingAccount($db);
|
$accountventilated = new AccountingAccount($db);
|
||||||
$accountventilated->fetch($monCompte, '');
|
$accountventilated->fetch($monCompte, '', 1);
|
||||||
|
|
||||||
dol_syslog('accountancy/expensereport/list.php:: sql='.$sql, LOG_DEBUG);
|
dol_syslog('accountancy/expensereport/list.php:: sql='.$sql, LOG_DEBUG);
|
||||||
if ($db->query($sql)) {
|
if ($db->query($sql)) {
|
||||||
$msg .= '<div><font color="green">'.$langs->trans("LineOfExpenseReport").' '.$monId.' - '.$langs->trans("VentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'</font></div>';
|
$msg .= '<div><span style="color:green">'.$langs->trans("LineOfExpenseReport").' '.$monId.' - '.$langs->trans("VentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'</span></div>';
|
||||||
$ok++;
|
$ok++;
|
||||||
} else {
|
} else {
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NotVentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'<br/> <pre>'.$sql.'</pre></font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NotVentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'<br/> <pre>'.$sql.'</pre></span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -146,7 +146,7 @@ if (empty($reshook))
|
|||||||
if ($massaction == 'ventil') {
|
if ($massaction == 'ventil') {
|
||||||
$msg = '';
|
$msg = '';
|
||||||
|
|
||||||
//print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>';
|
//print '<div><span style="color:red">' . $langs->trans("Processing") . '...</span></div>';
|
||||||
if (!empty($mesCasesCochees)) {
|
if (!empty($mesCasesCochees)) {
|
||||||
$msg = '<div>'.$langs->trans("SelectedLines").': '.count($mesCasesCochees).'</div>';
|
$msg = '<div>'.$langs->trans("SelectedLines").': '.count($mesCasesCochees).'</div>';
|
||||||
$msg .= '<div class="detail">';
|
$msg .= '<div class="detail">';
|
||||||
@ -161,7 +161,7 @@ if ($massaction == 'ventil') {
|
|||||||
|
|
||||||
if ($monCompte <= 0)
|
if ($monCompte <= 0)
|
||||||
{
|
{
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NoAccountSelected").'</font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NoAccountSelected").'</span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
} else {
|
} else {
|
||||||
$sql = " UPDATE ".MAIN_DB_PREFIX."facture_fourn_det";
|
$sql = " UPDATE ".MAIN_DB_PREFIX."facture_fourn_det";
|
||||||
@ -169,14 +169,14 @@ if ($massaction == 'ventil') {
|
|||||||
$sql .= " WHERE rowid = ".$monId;
|
$sql .= " WHERE rowid = ".$monId;
|
||||||
|
|
||||||
$accountventilated = new AccountingAccount($db);
|
$accountventilated = new AccountingAccount($db);
|
||||||
$accountventilated->fetch($monCompte, '');
|
$accountventilated->fetch($monCompte, '', 1);
|
||||||
|
|
||||||
dol_syslog('accountancy/supplier/list.php:: sql='.$sql, LOG_DEBUG);
|
dol_syslog('accountancy/supplier/list.php:: sql='.$sql, LOG_DEBUG);
|
||||||
if ($db->query($sql)) {
|
if ($db->query($sql)) {
|
||||||
$msg .= '<div><font color="green">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("VentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'</font></div>';
|
$msg .= '<div><span style="color:green">'.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("VentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'</span></div>';
|
||||||
$ok++;
|
$ok++;
|
||||||
} else {
|
} else {
|
||||||
$msg .= '<div><font color="red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NotVentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'<br/> <pre>'.$sql.'</pre></font></div>';
|
$msg .= '<div><span style="color:red">'.$langs->trans("ErrorDB").' : '.$langs->trans("Lineofinvoice").' '.$monId.' - '.$langs->trans("NotVentilatedinAccount").' : '.length_accountg($accountventilated->account_number).'<br/> <pre>'.$sql.'</pre></span></div>';
|
||||||
$ko++;
|
$ko++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,7 @@ DefaultForService=Default for service
|
|||||||
DefaultForProduct=Default for product
|
DefaultForProduct=Default for product
|
||||||
CantSuggest=Can't suggest
|
CantSuggest=Can't suggest
|
||||||
AccountancySetupDoneFromAccountancyMenu=Most setup of the accountancy is done from the menu %s
|
AccountancySetupDoneFromAccountancyMenu=Most setup of the accountancy is done from the menu %s
|
||||||
ConfigAccountingExpert=Configuration of the module accounting expert
|
ConfigAccountingExpert=Configuration of the module accounting (double entry)
|
||||||
Journalization=Journalization
|
Journalization=Journalization
|
||||||
Journaux=Journals
|
Journaux=Journals
|
||||||
JournalFinancial=Financial journals
|
JournalFinancial=Financial journals
|
||||||
@ -131,7 +131,7 @@ LineId=Id line
|
|||||||
Processing=Processing
|
Processing=Processing
|
||||||
EndProcessing=Process terminated.
|
EndProcessing=Process terminated.
|
||||||
SelectedLines=Selected lines
|
SelectedLines=Selected lines
|
||||||
Lineofinvoice=Line of invoice
|
Lineofinvoice=Line %s of invoice
|
||||||
LineOfExpenseReport=Line of expense report
|
LineOfExpenseReport=Line of expense report
|
||||||
NoAccountSelected=No accounting account selected
|
NoAccountSelected=No accounting account selected
|
||||||
VentilatedinAccount=Binded successfully to the accounting account
|
VentilatedinAccount=Binded successfully to the accounting account
|
||||||
|
|||||||
@ -896,7 +896,7 @@ Permission1185=Approve purchase orders
|
|||||||
Permission1186=Order purchase orders
|
Permission1186=Order purchase orders
|
||||||
Permission1187=Acknowledge receipt of purchase orders
|
Permission1187=Acknowledge receipt of purchase orders
|
||||||
Permission1188=Delete purchase orders
|
Permission1188=Delete purchase orders
|
||||||
Permission1189=Check/Uncheck a purhcase order reception
|
Permission1189=Check/Uncheck a purchase order reception
|
||||||
Permission1190=Approve (second approval) purchase orders
|
Permission1190=Approve (second approval) purchase orders
|
||||||
Permission1191=Export supplier orders and their attributes
|
Permission1191=Export supplier orders and their attributes
|
||||||
Permission1201=Get result of an export
|
Permission1201=Get result of an export
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user