IMA-WorldHealth / bhima-1.X

A hospital information system for developing countries.
GNU General Public License v2.0
10 stars 14 forks source link

New Stock Loss Interface #845

Closed jniles closed 9 years ago

jniles commented 9 years ago

This PR fixes #766.

This PR is mostly for team review of the new stock loss interface. Stock loss works, through posting in the journal, but the on-the-fly totaling does not take into account the original purchase price of each lot. This is easily implemented, and I'll push to this branch when I have a fix for that specific issue. Update This is been implemented.

I'd be interested in getting some feedback on the UI though. @DedrickEnc, let me know what you think.

EDIT Attached the following screenshots

Selecting an Inventory Item findanitem

Selecting multiple lots for a single inventory item multiplelots

Full Interface in action with multiple inventory items, lots, and error states fullinterface

DedrickEnc commented 9 years ago

Cool, I am waiting for the total price fix and then I will merge it in

jniles commented 9 years ago

@DedrickEnc , I've updated with the correct unit_price calculation. The loss interface now agrees with the receipt interface. Here's a screenshot of two lots with different unit_prices.

unit_price_valuation