Merge branch '9.0' of git@github.com:Dolibarr/dolibarr.git into 9.0
This commit is contained in:
commit
d9aa816197
@ -3047,7 +3047,7 @@ if ($action == 'create')
|
|||||||
{
|
{
|
||||||
print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
|
print '<div class="tagtr listofinvoicetype"><div class="tagtd listofinvoicetype">';
|
||||||
$tmp='<input type="radio" id="radio_creditnote" name="type" value="2"' . (GETPOST('type') == 2 ? ' checked' : '');
|
$tmp='<input type="radio" id="radio_creditnote" name="type" value="2"' . (GETPOST('type') == 2 ? ' checked' : '');
|
||||||
if (! $optionsav) $tmp.=' disabled';
|
if (! $optionsav && empty($conf->global->INVOICE_CREDIT_NOTE_STANDALONE)) $tmp.=' disabled';
|
||||||
$tmp.= '> ';
|
$tmp.= '> ';
|
||||||
// Show credit note options only if we checked credit note
|
// Show credit note options only if we checked credit note
|
||||||
print '<script type="text/javascript" language="javascript">
|
print '<script type="text/javascript" language="javascript">
|
||||||
|
|||||||
@ -1876,10 +1876,16 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
foreach ($this->lines as &$line)
|
foreach ($this->lines as &$line)
|
||||||
{
|
{
|
||||||
|
// Amounts in company currency will be recalculated
|
||||||
if($mode == 1) {
|
if($mode == 1) {
|
||||||
$line->subprice = 0;
|
$line->subprice = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Amounts in foreign currency will be recalculated
|
||||||
|
if($mode == 2) {
|
||||||
|
$line->multicurrency_subprice = 0;
|
||||||
|
}
|
||||||
|
|
||||||
switch ($this->element) {
|
switch ($this->element) {
|
||||||
case 'propal':
|
case 'propal':
|
||||||
$this->updateline(
|
$this->updateline(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user