Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#4423 closed defect (bug) (fixed)

Invoices: Don't display the VAT table row if no VAT details present

Reported by: dd32's profile dd32 Owned by:
Milestone: Priority: normal
Component: WordCamp Site & Plugins Keywords: has-patch


Currently Invoices will include the VAT: 0 line in the table even if the plugin is set to not collect VAT numbers.

The attached patch simply hides that row, and only shows it if either of the following conditions are met:

  • The form is set to accept VAT numbers
  • The invoice has a VAT number associated with it

While using either of these conditionals individually would suffice, it was simpler to just cover future bases by checking both.

This will aid in the future usage of the plugin outside of the EU.

Attachments (1)

4423.diff (1.2 KB) - added by dd32 5 years ago.

Download all attachments as: .zip

Change History (3)

5 years ago

#1 @dd32
5 years ago

  • Keywords has-patch added

#2 @vedjain
5 years ago

  • Resolution set to fixed
  • Status changed from new to closed

Commited in r8797

Last edited 5 years ago by vedjain (previous) (diff)
Note: See TracTickets for help on using tickets.