I have modified the theme_store_invoice function to fit rules of accounting and fit danish standard.

It might also fit the rest of the world, but, would like some feedback on the design and the functionality.

The design is made to fit a A4 page for direct PDF creation and printing.

// We set the terms of payment according to the selected payment method
  $payment_method = $txn->payment_method;
  if ($payment_method == 'paypal') {
    $payment_terms = t('Credit card');
    $delivery_terms = t('Del. Duty paid');
  } else {
    $payment_terms = t('Bank transfer');
    $delivery_terms = t('Del. Duty Unpaid');
  }

Should be set through the payment modules and through the shipping modules provided.

CommentFileSizeAuthor
newinvoice.patch.txt12.96 KBschultzconsult

Comments

sime’s picture

Status: Needs review » Fixed

You should keep your patch applied for 4.7, but EC5 will see gordon's invoice code come in which will allow you to theme your invoice (and PDF if too)

Anonymous’s picture

Status: Fixed » Closed (fixed)