-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX #25853 Thirdparty Massaction #25868
Open
simnandez
wants to merge
8
commits into
Dolibarr:18.0
Choose a base branch
from
simnandez:18.0
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+12
−8
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
de25cae
FIX #25853 Thirdparty Massaction
d08190d
FIX #25704 Taxes Deleted from Vendor Invoices
ce5ab25
FIX #25704 Taxes Deleted from Vendor Invoices
ac92a06
FIX #25704 Taxes Deleted from Vendor Invoices
d3dae4a
Merge remote-tracking branch 'upstream/18.0' into 18.0
simnandez d6b8937
Merge remote-tracking branch 'upstream/18.0' into 18.0
simnandez fc133e2
Merge remote-tracking branch 'upstream/18.0' into 18.0
simnandez ff8193e
Merge remote-tracking branch 'upstream/18.0' into 18.0
simnandez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Copyright (C) 2004 Christophe Combelles <[email protected]> | ||
* Copyright (C) 2005 Marc Barilley <[email protected]> | ||
* Copyright (C) 2005-2012 Regis Houssin <[email protected]> | ||
* Copyright (C) 2010-2020 Juanjo Menent <jmenent@2byte.es> | ||
* Copyright (C) 2010-2023 Juanjo Menent <jmenent@simnandez.es> | ||
* Copyright (C) 2013-2019 Philippe Grand <[email protected]> | ||
* Copyright (C) 2013 Florian Henry <[email protected]> | ||
* Copyright (C) 2014-2016 Marcos García <[email protected]> | ||
|
@@ -1201,10 +1201,14 @@ public function update($user = null, $notrigger = 0) | |
if (empty($this->total_tva)) { | ||
$this->total_tva = 0; | ||
} | ||
// if (isset($this->total_localtax1)) $this->total_localtax1=trim($this->total_localtax1); | ||
// if (isset($this->total_localtax2)) $this->total_localtax2=trim($this->total_localtax2); | ||
if (isset($this->total_ttc)) { | ||
$this->total_ttc = trim($this->total_ttc); | ||
if (empty($this->total_localtax1)) { | ||
$this->total_localtax1 = 0; | ||
} | ||
if (empty($this->total_localtax2)) { | ||
$this->total_localtax2 = 0; | ||
} | ||
if (empty($this->total_ttc)) { | ||
$this->total_ttc = 0; | ||
} | ||
if (isset($this->statut)) { | ||
$this->statut = (int) $this->statut; | ||
|
@@ -1262,8 +1266,8 @@ public function update($user = null, $notrigger = 0) | |
$sql .= " paye=".(isset($this->paye) ? ((int) $this->paye) : "0").","; | ||
$sql .= " close_code=".(isset($this->close_code) ? "'".$this->db->escape($this->close_code)."'" : "null").","; | ||
$sql .= " close_note=".(isset($this->close_note) ? "'".$this->db->escape($this->close_note)."'" : "null").","; | ||
$sql .= " localtax1=".(isset($this->localtax1) ? ((float) $this->localtax1) : "null").","; | ||
$sql .= " localtax2=".(isset($this->localtax2) ? ((float) $this->localtax2) : "null").","; | ||
$sql .= " localtax1=".(isset($this->total_localtax1) ? ((float) $this->total_localtax1) : "null").","; | ||
$sql .= " localtax2=".(isset($this->total_localtax2) ? ((float) $this->total_localtax2) : "null").","; | ||
$sql .= " total_ht=".(isset($this->total_ht) ? ((float) $this->total_ht) : "null").","; | ||
$sql .= " total_tva=".(isset($this->total_tva) ? ((float) $this->total_tva) : "null").","; | ||
$sql .= " total_ttc=".(isset($this->total_ttc) ? ((float) $this->total_ttc) : "null").","; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Copyright (C) 2004 Christophe Combelles <[email protected]> | ||
* Copyright (C) 2005 Marc Barilley <[email protected]> | ||
* Copyright (C) 2005-2013 Regis Houssin <[email protected]> | ||
* Copyright (C) 2010-2019 Juanjo Menent <jmenent@2byte.es> | ||
* Copyright (C) 2010-2023 Juanjo Menent <jmenent@simnandez.es> | ||
* Copyright (C) 2013-2022 Philippe Grand <[email protected]> | ||
* Copyright (C) 2013 Florian Henry <[email protected]> | ||
* Copyright (C) 2014-2016 Marcos García <[email protected]> | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eldy @simnandez
On develop you have "if (isset($this->total_ttc)) {" and maybe it not needeed for yout fix (can occur conflicts with develop branch)