mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-18 23:41:28 +01:00
Fix include
This commit is contained in:
@@ -5811,10 +5811,13 @@ function get_default_tva(Societe $thirdparty_seller, Societe $thirdparty_buyer,
|
|||||||
if (($seller_in_cee && $buyer_in_cee)) {
|
if (($seller_in_cee && $buyer_in_cee)) {
|
||||||
$isacompany = $thirdparty_buyer->isACompany();
|
$isacompany = $thirdparty_buyer->isACompany();
|
||||||
if ($isacompany) {
|
if ($isacompany) {
|
||||||
if (!empty($conf->global->MAIN_USE_VAT_OF_PRODUCT_FOR_COMPANIES_IN_EEC_WITH_INVALID_VAT_ID) && !isValidVATID($thirdparty_buyer)) {
|
if (!empty($conf->global->MAIN_USE_VAT_OF_PRODUCT_FOR_COMPANIES_IN_EEC_WITH_INVALID_VAT_ID)) {
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/functions2.lib.php';
|
||||||
|
if (!isValidVATID($thirdparty_buyer)) {
|
||||||
//print 'VATRULE 6';
|
//print 'VATRULE 6';
|
||||||
return get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice);
|
return get_product_vat_for_country($idprod, $thirdparty_seller, $idprodfournprice);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
//print 'VATRULE 3';
|
//print 'VATRULE 3';
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user