Created
November 20, 2018 12:51
-
-
Save trueqap/447512b81caa1361a901b43bab086e4d to your computer and use it in GitHub Desktop.
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
add_filter('wc_szamlazz_xml','wc_szamlazz_xml_vat_number',10,2); | |
function wc_szamlazz_xml_vat_number($xml,$order) { | |
//Adószám a YITH WooCommerce EU VAT által tárolva | |
$adoszam = $order->get_meta( 'yweu_billing_vat', true ); | |
//Ha van adószám, MAA az áfakulcs minden tételnél | |
if($adoszam) { | |
//Adószám feltüntetése | |
$xml->vevo->adoszam = $adoszam; | |
} | |
return $xml; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment