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

--- Comment #1 from Sam Lau <[email protected]> ---
Created attachment 170666
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170666&action=edit
Bug 34922: Auto populate amount for an invoice with replacement_price
associated with the barcode

This patch allows for the "amount" field to be automatically populated with the
replacement_price or the purchase_price after entering a barcode. If no barcode
is enter (or an invalid barcode is entered), the "amount" field defaults to the
default amount for that invoice type.

To test:
1) Make an item with a barcode of '10' and a replacement price of 4
2) Make another item with a barcode of '101' and a purchase price of 6
3) Make a third item with a barcode of '1010' and leave prices blank.
4) Apply patch, restart_all
5) Visit a patron's accounting tab.
6) Click on 'Create manual invoice'
7) Type in the barcode '10', notice the "Amount" automatically fills to 4
8) Now add another 1 to the barcode, note the amount changes to 6 (no
replacement price so default to purchase price)
9) Add another 0, now the amount goes to the defualt value that it was before.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to