mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-10 03:28:18 +01:00
Doc
This commit is contained in:
@@ -7957,7 +7957,7 @@ function get_default_tva(Societe $thirdparty_seller, Societe $thirdparty_buyer,
|
|||||||
// If the (seller country = buyer country) then the default VAT = VAT of the product sold. End of rule.
|
// If the (seller country = buyer country) then the default VAT = VAT of the product sold. End of rule.
|
||||||
if (($seller_country_code == $buyer_country_code)
|
if (($seller_country_code == $buyer_country_code)
|
||||||
|| (in_array($seller_country_code, array('FR', 'MC')) && in_array($buyer_country_code, array('FR', 'MC')))
|
|| (in_array($seller_country_code, array('FR', 'MC')) && in_array($buyer_country_code, array('FR', 'MC')))
|
||||||
|| (in_array($seller_country_code, array('MQ', 'GP')) && in_array($buyer_country_code, array('MQ', 'GP')))
|
|| (in_array($seller_country_code, array('MQ', 'GP')) && in_array($buyer_country_code, array('MQ', 'GP'))) // We should be able to manage the case of MQ, GP, ... with a deicated vat rate at previous step.
|
||||||
) { // Warning ->country_code not always defined
|
) { // Warning ->country_code not always defined
|
||||||
//print 'VATRULE 3';
|
//print 'VATRULE 3';
|
||||||
$tmpvat = get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice);
|
$tmpvat = get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice);
|
||||||
|
|||||||
Reference in New Issue
Block a user