Bug 17542

Summary: Altering an invoice throws error unless shipment date and billing date both defined or both undefined
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: normal    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Nick Clemens (kidclamp) 2016-11-02 23:14:25 UTC
When creating an invoice you can create it without a billing or shipment date

You can then alter the shipment cost, however, trying to define a billing date without first defining a shipment date causes:
invoice.pl: Odd number of elements in hash assignment at /home/vagrant/kohaclone/C4/Acquisition.pm line 2700., referer: http://localhost:8081/cgi-bin/koha/acqui/invoice.pl


Define only a shipment date and the change will go through, but then attempting to change the shipment cost will fail until a billing date is also defined
Comment 1 Katrin Fischer 2020-01-12 09:38:16 UTC
I can't replicate this bug on current master. I've tried several things on the 'receive shipment' and on the 'invoice' pages, but weren't able to make Koha explode.