WordPress.org

Making WordPress.org

Opened 11 months ago

Closed 11 months ago

Last modified 11 months 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 11 months ago.

Download all attachments as: .zip

Change History (3)

@dd32
11 months ago

#1 @dd32
11 months ago

  • Keywords has-patch added

#2 @vedjain
11 months ago

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

Commited in r8797

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