WordPress.org

Making WordPress.org

Opened 2 years ago

Closed 2 years ago

Last modified 2 years 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 2 years ago.

Download all attachments as: .zip

Change History (3)

@dd32
2 years ago

#1 @dd32
2 years ago

  • Keywords has-patch added

#2 @vedjain
2 years ago

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

Commited in r8797

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