Bug 17542 - Altering an invoice throws error unless shipment date and billing date both defined or both undefined
Summary: Altering an invoice throws error unless shipment date and billing date both d...
Status: CLOSED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-02 23:14 UTC by Nick Clemens (kidclamp)
Modified: 2020-11-30 21:45 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.