Skip to content
Snippets Groups Projects

Fakturownia - dodanie podstawy zwolnienia na fakturę bez VAT

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Sebastian Rybacki
    Edited
    Fakturownia - dodanie podstawy zwolnienia na fakturę bez VAT.php 348 B
    add_filter( 'fakturownia/invoice_without_vat/data', 'wpdesk_fakturownia_add_transaction_id', 10, 2 );
    function wpdesk_fakturownia_add_transaction_id( array $data, WPDesk\WooCommerceFakturownia\Data\DocumentData $document_data ) {
    	foreach($data['positions'] as $key => $position){
    		$data['positions'][$key]['tax'] = 'zw';
    	}
    	return $data;
    }
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment