Skip to content

Commit

Permalink
Merge branch 'develop' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy authored Mar 7, 2024
2 parents a6881e2 + b4b83c1 commit addd098
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions htdocs/adherents/subscription/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
// Label
print '<tr><td>'.$langs->trans("Label").'</td>';
print '<td class="valeur">';
print '<input type="text" class="flat" name="note" value="'.$object->note_private.'"></td></tr>';
print '<input type="text" class="flat" name="note" value="'.$object->note_public.'"></td></tr>';

// Bank line
if (isModEnabled("bank") && (getDolGlobalString('ADHERENT_BANK_USE') || $object->fk_bank)) {
Expand Down Expand Up @@ -334,7 +334,7 @@
print '<tr><td>'.$langs->trans("Amount").'</td><td class="valeur"><span class="amount">'.price($object->amount).'</span></td></tr>';

// Label
print '<tr><td>'.$langs->trans("Label").'</td><td class="valeur sensiblehtmlcontent">'.dol_string_onlythesehtmltags(dol_htmlentitiesbr($object->note_private)).'</td></tr>';
print '<tr><td>'.$langs->trans("Label").'</td><td class="valeur sensiblehtmlcontent">'.dol_string_onlythesehtmltags(dol_htmlentitiesbr($object->note_public)).'</td></tr>';

// Bank line
if (isModEnabled("bank") && (getDolGlobalString('ADHERENT_BANK_USE') || $object->fk_bank)) {
Expand Down
4 changes: 2 additions & 2 deletions htdocs/compta/prelevement/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
$pricetowithdraw = $bprev->SommeAPrelever($type, 'salary');
}
if ($nb < 0) {
dol_print_error($bprev->error);
dol_print_error($db, $bprev->error);
}
print '<table class="border centpercent tableforfield">';

Expand Down Expand Up @@ -479,7 +479,7 @@
}
$title = $langs->trans("InvoiceWaitingWithdraw");
$picto = 'bill';
if ($type =='bank-transfer') {
if ($type == 'bank-transfer') {
if ($sourcetype != 'salary') {
$title = $langs->trans("InvoiceWaitingPaymentByBankTransfer");
} else {
Expand Down
2 changes: 1 addition & 1 deletion htdocs/expedition/card.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
}
} elseif ($action == 'confirm_delete' && $confirm == 'yes' && $user->hasRight('expedition', 'supprimer')) {
$also_update_stock = (GETPOST('alsoUpdateStock', 'alpha') ? 1 : 0);
$result = $object->delete(0, $also_update_stock);
$result = $object->delete($user, 0, $also_update_stock);
if ($result > 0) {
header("Location: ".DOL_URL_ROOT.'/expedition/index.php');
exit;
Expand Down
4 changes: 2 additions & 2 deletions htdocs/expedition/class/expedition.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@ public function cancel($notrigger = 0, $also_update_stock = false)

$mouvS = new MouvementStock($this->db);
// we do not log origin because it will be deleted
$mouvS->origin = null;
$mouvS->origin = '';
// get lot/serial
$lotArray = null;
if (isModEnabled('productbatch')) {
Expand Down Expand Up @@ -1440,7 +1440,7 @@ public function delete($user = null, $notrigger = 0, $also_update_stock = false)

$mouvS = new MouvementStock($this->db);
// we do not log origin because it will be deleted
$mouvS->origin = null;
$mouvS->origin = '';
// get lot/serial
$lotArray = $shipmentlinebatch->fetchAll($obj->expeditiondet_id);
if (!is_array($lotArray)) {
Expand Down
2 changes: 2 additions & 0 deletions htdocs/resource/class/dolresource.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,8 @@ public function delete(User $user, int $notrigger = 0)

require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php';

$rowid = $this->id;

$error = 0;

$this->db->begin();
Expand Down

0 comments on commit addd098

Please sign in to comment.