Fix card.php

Error adding localtax
This commit is contained in:
JC Prieto 2021-10-20 19:33:28 +02:00 committed by GitHub
parent 34c61edcbd
commit 0756a01002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ if ($cancel && !$id) {
exit;
}
if ($action == 'add' && $cancel) {
if ($action == 'add' && !$cancel) {
$db->begin();
$datev = dol_mktime(12, 0, 0, GETPOST("datevmonth"), GETPOST("datevday"), GETPOST("datevyear"));