Skip to content

Instantly share code, notes, and snippets.

@trueqap
Created November 20, 2018 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save trueqap/380238afa71b151d13e57dda1af11505 to your computer and use it in GitHub Desktop.
Save trueqap/380238afa71b151d13e57dda1af11505 to your computer and use it in GitHub Desktop.
add_filter('wc_szamlazz_xml','wc_szamlazz_xml_aam',10,2);
function wc_szamlazz_xml_aam($xml,$order) {
//Minden tétel AAM legyen
foreach($xml->tetelek->tetel as $tetel) {
$tetel->afakulcs = 'AAM';
}
//Megjegyzés kiegészítés
$xml->fejlec->megjegyzes .= ' A számla nem tartalmaz ÁFÁ-t és nem jogosít annak visszaigénylésére sem.';
return $xml;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment