Hello, here is a patch for accountancy/journal/purchasesjournal.php file ... there is some "error messages" talking about customers ... but this is a supplier context so i think that's a bug :)
thanks to apply and publish Éric -- Éric Seigne | CAP-REL* eric.sei...@cap-rel.fr | +33 (0)6 987 444 01 https://cap-rel.fr | *Réseau Expertise Linux
>From 9d0e0029ecbf63af67e6bc08b1e18efddaa46715 Mon Sep 17 00:00:00 2001 From: Eric Seigne <eric.sei...@cap-rel.fr> Date: Mon, 7 Jan 2019 15:41:10 +0100 Subject: [PATCH] scories about customers in a suppliers part --- htdocs/accountancy/journal/purchasesjournal.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/accountancy/journal/purchasesjournal.php b/htdocs/accountancy/journal/purchasesjournal.php index bec5ce6760..c67b773036 100644 --- a/htdocs/accountancy/journal/purchasesjournal.php +++ b/htdocs/accountancy/journal/purchasesjournal.php @@ -7,6 +7,7 @@ * Copyright (C) 2013-2016 Olivier Geffroy <j...@jeffinfo.com> * Copyright (C) 2013-2016 Florian Henry <florian.he...@open-concept.pro> * Copyright (C) 2018 Frédéric France <frederic.fra...@netlogic.fr> + * Copyright (C) 2018 Eric Seigne <eric.sei...@cap-rel.fr> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -747,7 +748,7 @@ if (empty($action) || $action == 'view') { } print '<div class="tabsAction tabsActionNoBottom">'; if (! empty($conf->global->ACCOUNTING_ENABLE_EXPORT_DRAFT_JOURNAL)) print '<input type="button" class="butAction" name="exportcsv" value="' . $langs->trans("ExportDraftJournal") . '" onclick="launch_export();" />'; - if (empty($conf->global->ACCOUNTING_ACCOUNT_CUSTOMER) || $conf->global->ACCOUNTING_ACCOUNT_CUSTOMER == '-1') { + if (empty($conf->global->ACCOUNTING_ACCOUNT_SUPPLIER) || $conf->global->ACCOUNTING_ACCOUNT_SUPPLIER == '-1') { print '<input type="button" class="butActionRefused classfortooltip" title="'.dol_escape_htmltag($langs->trans("SomeMandatoryStepsOfSetupWereNotDone")).'" value="' . $langs->trans("WriteBookKeeping") . '" />'; } else { @@ -878,7 +879,7 @@ if (empty($action) || $action == 'view') { $accountoshow = length_accounta($conf->global->ACCOUNTING_ACCOUNT_SUPPLIER); if (empty($accountoshow) || $accountoshow == 'NotDefined') { - print '<span class="error">'.$langs->trans("MainAccountForCustomersNotDefined").'</span>'; + print '<span class="error">'.$langs->trans("MainAccountForSupplierssNotDefined").'</span>'; } else print $accountoshow; print '</td>'; -- 2.11.0
_______________________________________________ Dolibarr-dev mailing list Dolibarr-dev@nongnu.org https://lists.nongnu.org/mailman/listinfo/dolibarr-dev