[Koha-bugs] [Bug 19780] Actual price is not updated after it has been amended post receiving an order

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 10 07:39:53 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19780

Hayley Mapley <hayleymapley at catalyst.net.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #69622|0                           |1
        is obsolete|                            |

--- Comment #7 from Hayley Mapley <hayleymapley at catalyst.net.nz> ---
Created attachment 87696
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87696&action=edit
Fixed merge conflicts -

Bug 19780 - Updating the invoice costs after updating of the actual value post
receiving of the order

This invoice will update the invoice values if the order actual price
value is modified after the order has been received.

Test plan:
1. Create an order with the vendor price: 10.00 and actual price of
12.00

2. Close the order and receive the shipment. Change the actual price in
the receival page to 14.00

3. View the invoices and notice that 14.00 is the value displayed

4. Go back to the order and click on the order line to modify the order.
Change the actual price to 15.00

5. View the invoice now and notice that 14.00 is still the value being
displayed

6. Apply patch

7. Repeat steps 1,2,3,4 and 5 and notice that 15.00 is the value
displayed in the invoice

8. Now repeat steps 1. View the aqorders database table and notice after
step 1 is completed the order has unitprice:12.00 and
unitprice_tax_included and unitprice_tax_excluded values of NULL

9. Now before closing the order modify it and set the actual price to
14.00

10. Check the aqorders table again and notice that the unitprice is
14.00 and the unitprice_tax_included and unitprice_tax_excluded both
equal NULL. This means the unitprice_tax_included and
unitprice_tax_excluded values are not being updated before the order has
been receieved by they are being correctly updated if the order has been
received and the actual price is changed.

Sponsored-by: Horowhenua Distircit Council

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list