[*] BO: Allow to breakdown the taxes when they are computed
This commit is contained in:
@@ -243,7 +243,7 @@ class OrderInvoiceCore extends ObjectModel
|
|||||||
WHERE od.`id_order` = '.(int)$this->id_order.'
|
WHERE od.`id_order` = '.(int)$this->id_order.'
|
||||||
AND od.`id_order_invoice` = '.(int)$this->id.'
|
AND od.`id_order_invoice` = '.(int)$this->id.'
|
||||||
AND od.`tax_computation_method` = '.(int)TaxCalculator::ONE_AFTER_ANOTHER_METHOD
|
AND od.`tax_computation_method` = '.(int)TaxCalculator::ONE_AFTER_ANOTHER_METHOD
|
||||||
);
|
) || Configuration::get('PS_INVOICE_TAXES_BREAKDOWN');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -42,6 +42,12 @@ class AdminInvoicesControllerCore extends AdminController
|
|||||||
'cast' => 'intval',
|
'cast' => 'intval',
|
||||||
'type' => 'bool'
|
'type' => 'bool'
|
||||||
),
|
),
|
||||||
|
'PS_INVOICE_TAXES_BREAKDOWN' => array(
|
||||||
|
'title' => $this->l('Enable the breakdown of taxes on the invoice:'),
|
||||||
|
'desc' => $this->l('Enable the breakdown of taxes on the invoice when there are computed (like in QC)'),
|
||||||
|
'cast' => 'intval',
|
||||||
|
'type' => 'bool'
|
||||||
|
),
|
||||||
'PS_INVOICE_PREFIX' => array(
|
'PS_INVOICE_PREFIX' => array(
|
||||||
'title' => $this->l('Invoice prefix:'),
|
'title' => $this->l('Invoice prefix:'),
|
||||||
'desc' => $this->l('Prefix used for invoice name (e.g. IN00001)'),
|
'desc' => $this->l('Prefix used for invoice name (e.g. IN00001)'),
|
||||||
|
|||||||
Reference in New Issue
Block a user