WordPress.org

Making WordPress.org

Opened 8 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#4423 closed defect (fixed)

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

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

Description

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 8 weeks ago.

Download all attachments as: .zip

Change History (3)

@dd32
8 weeks ago

#1 @dd32
8 weeks ago

  • Keywords has-patch added

#2 @vedjain
6 weeks ago

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

Commited in r8797

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