Ticket #82 (assigned defect)

Opened 8 months ago

Last modified 8 months ago

error trying to create an invoice

Reported by: richcowan Owned by: florian
Priority: minor Milestone: 0.5
Component: other Version: 0.4
Keywords: Cc:

Description

When I click on Unbilled Invoices and then try clicking on Create invoice I get an error. However when I click on Show Choices to create my invoice it works fine.

The error seems related to a missing company, here is the message:

The following error occured
Invalid or missing invoice recipient (company)
Backtrace
File: /home/billing/phpaga/lib/errors.php, Line: 107, Function: __construct , Class: PhPagaError , Type: ->
File: /home/billing/phpaga/lib/bills.php, Line: 201, Function: raiseErrorByCode , Class: PhPagaError , Type: ::
File: /home/billing/public_html/add_bill.php, Line: 677, Function: phpaga_bills_checkInfo 

Attachments

Change History

Changed 8 months ago by florian

  • status changed from new to assigned

This should actually just be a notice rather than an error message. It is checked whether the submitted invoice consists of valid data (the customer/company is a mandatory field).

I have disabled this check when coming from another page and committed the changes as revision r942. Now this message should only be raised when an action on the "add invoice" page is taken.

Add/Change #82 (error trying to create an invoice)

Author



Change Properties
<Author field>
Action
as assigned
as The resolution will be set. Next status will be 'closed'
to The owner will change. Next status will be 'new'
 
Note: See TracTickets for help on using tickets.