Merge pull request #1028 from marcosgdf/minor
Entities problem with error message in predefined invoice creation
This commit is contained in:
commit
5eac7a0bcc
@ -65,7 +65,7 @@ if ($action == 'add')
|
|||||||
{
|
{
|
||||||
if (! GETPOST('titre'))
|
if (! GETPOST('titre'))
|
||||||
{
|
{
|
||||||
setEventMessage($langs->trans("ErrorFieldRequired",$langs->trans("Title")), 'errors');
|
setEventMessage($langs->transnoentities("ErrorFieldRequired",$langs->trans("Title")), 'errors');
|
||||||
$action = "create";
|
$action = "create";
|
||||||
$error++;
|
$error++;
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ if ($action == 'create')
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Title
|
// Title
|
||||||
print '<tr><td>'.$langs->trans("Title").'</td><td>';
|
print '<tr><td class="fieldrequired">'.$langs->trans("Title").'</td><td>';
|
||||||
print '<input class="flat" type="text" name="titre" size="24" value="'.$_POST["titre"].'">';
|
print '<input class="flat" type="text" name="titre" size="24" value="'.$_POST["titre"].'">';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
|
|
||||||
|
|||||||
@ -212,9 +212,9 @@ class NumberingModulesTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertEquals(1, $result); // Case 1 can be deleted (because there was a reset for case 2)
|
$this->assertEquals(1, $result); // Case 1 can be deleted (because there was a reset for case 2)
|
||||||
|
|
||||||
// Try an offset when an invoice already exists
|
// Try an offset when an invoice already exists
|
||||||
$conf->global->FACTURE_MERCURE_MASK_CREDIT='{yyyy}{mm}-{0000+9990}';
|
$conf->global->FACTURE_MERCURE_MASK_CREDIT='{yyyy}{mm}-{0000+9990}';
|
||||||
$conf->global->FACTURE_MERCURE_MASK_INVOICE='{yyyy}{mm}-{0000+9990}';
|
$conf->global->FACTURE_MERCURE_MASK_INVOICE='{yyyy}{mm}-{0000+9990}';
|
||||||
$result=$numbering->getNextValue($mysoc, $localobject2);
|
$result=$numbering->getNextValue($mysoc, $localobject2);
|
||||||
|
|
||||||
// Now we try with a different fiscal month (forced by mask)
|
// Now we try with a different fiscal month (forced by mask)
|
||||||
$conf->global->FACTURE_MERCURE_MASK_CREDIT='{yyyy}{mm}-{0000@6}';
|
$conf->global->FACTURE_MERCURE_MASK_CREDIT='{yyyy}{mm}-{0000@6}';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user