FIX : forgotten form confirm before various payment delete
This commit is contained in:
parent
446ee8dc3c
commit
ab2e6ddf43
@ -179,7 +179,7 @@ if (empty($reshook)) {
|
|||||||
$action = 'create';
|
$action = 'create';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($action == 'delete') {
|
if ($action == 'confirm_delete' && $confirm == 'yes') {
|
||||||
$result = $object->fetch($id);
|
$result = $object->fetch($id);
|
||||||
|
|
||||||
if ($object->rappro == 0) {
|
if ($object->rappro == 0) {
|
||||||
@ -548,6 +548,12 @@ if ($id) {
|
|||||||
print $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ToClone'), $langs->trans('ConfirmCloneVariousPayment', $object->ref), 'confirm_clone', $formquestion, 'yes', 1, 350);
|
print $form->formconfirm($_SERVER["PHP_SELF"].'?id='.$object->id, $langs->trans('ToClone'), $langs->trans('ConfirmCloneVariousPayment', $object->ref), 'confirm_clone', $formquestion, 'yes', 1, 350);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Confirmation of the removal of the Social Contribution
|
||||||
|
if ($action == 'delete') {
|
||||||
|
$text = $langs->trans('ConfirmDeleteVariousPayment');
|
||||||
|
print $form->formconfirm($_SERVER['PHP_SELF'].'?id='.$object->id, $langs->trans('DeleteVariousPayment'), $text, 'confirm_delete', '', '', 2);
|
||||||
|
}
|
||||||
|
|
||||||
print dol_get_fiche_head($head, 'card', $langs->trans("VariousPayment"), -1, $object->picto);
|
print dol_get_fiche_head($head, 'card', $langs->trans("VariousPayment"), -1, $object->picto);
|
||||||
|
|
||||||
$morehtmlref = '<div class="refidno">';
|
$morehtmlref = '<div class="refidno">';
|
||||||
|
|||||||
@ -146,9 +146,11 @@ ConfirmPaySalary=Are you sure you want to classify this salary card as paid?
|
|||||||
DeleteSocialContribution=Delete a social or fiscal tax payment
|
DeleteSocialContribution=Delete a social or fiscal tax payment
|
||||||
DeleteVAT=Delete a VAT declaration
|
DeleteVAT=Delete a VAT declaration
|
||||||
DeleteSalary=Delete a salary card
|
DeleteSalary=Delete a salary card
|
||||||
|
DeleteVariousPayment=Delete a various payment
|
||||||
ConfirmDeleteSocialContribution=Are you sure you want to delete this social/fiscal tax payment ?
|
ConfirmDeleteSocialContribution=Are you sure you want to delete this social/fiscal tax payment ?
|
||||||
ConfirmDeleteVAT=Are you sure you want to delete this VAT declaration ?
|
ConfirmDeleteVAT=Are you sure you want to delete this VAT declaration ?
|
||||||
ConfirmDeleteSalary=Are you sure you want to delete this salary?
|
ConfirmDeleteSalary=Are you sure you want to delete this salary ?
|
||||||
|
ConfirmDeleteVariousPayment=Are you sure you want to delete this various payment ?
|
||||||
ExportDataset_tax_1=Social and fiscal taxes and payments
|
ExportDataset_tax_1=Social and fiscal taxes and payments
|
||||||
CalcModeVATDebt=Mode <b>%sVAT on commitment accounting%s</b>.
|
CalcModeVATDebt=Mode <b>%sVAT on commitment accounting%s</b>.
|
||||||
CalcModeVATEngagement=Mode <b>%sVAT on incomes-expenses%s</b>.
|
CalcModeVATEngagement=Mode <b>%sVAT on incomes-expenses%s</b>.
|
||||||
|
|||||||
@ -146,9 +146,11 @@ ConfirmPaySalary=Voulez-vous vraiment classer ce salaire comme payé ?
|
|||||||
DeleteSocialContribution=Effacer une charge fiscale ou sociale
|
DeleteSocialContribution=Effacer une charge fiscale ou sociale
|
||||||
DeleteVAT=Supprimer une déclaration de TVA
|
DeleteVAT=Supprimer une déclaration de TVA
|
||||||
DeleteSalary=Supprimer un salaire
|
DeleteSalary=Supprimer un salaire
|
||||||
|
DeleteVariousPayment=Supprimer un paiement divers
|
||||||
ConfirmDeleteSocialContribution=Voulez-vous vraiment supprimer ce paiement de taxe sociale / fiscale?
|
ConfirmDeleteSocialContribution=Voulez-vous vraiment supprimer ce paiement de taxe sociale / fiscale?
|
||||||
ConfirmDeleteVAT=Voulez-vous vraiment supprimer cette déclaration de TVA ?
|
ConfirmDeleteVAT=Voulez-vous vraiment supprimer cette déclaration de TVA ?
|
||||||
ConfirmDeleteSalary=Êtes-vous sûr de vouloir supprimer ce salaire ?
|
ConfirmDeleteSalary=Êtes-vous sûr de vouloir supprimer ce salaire ?
|
||||||
|
ConfirmDeleteVariousPayment=Voulez-vous vraiment supprimer ce paiement divers ?
|
||||||
ExportDataset_tax_1=Taxes sociales et fiscales et paiements
|
ExportDataset_tax_1=Taxes sociales et fiscales et paiements
|
||||||
CalcModeVATDebt=Mode <b>%sTVA sur débit%s</b>.
|
CalcModeVATDebt=Mode <b>%sTVA sur débit%s</b>.
|
||||||
CalcModeVATEngagement=Mode <b>%sTVA sur encaissement%s</b>.
|
CalcModeVATEngagement=Mode <b>%sTVA sur encaissement%s</b>.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user