Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OP-1376 OP-1377 | Fix some Bug #2115

Merged
merged 21 commits into from
Jan 14, 2025

Conversation

ArnaudFofou
Copy link
Contributor

@ArnaudFofou ArnaudFofou commented Jan 9, 2025

See OP-1376 and OP-1377.

  • Check If real quantity is greatter than zero during validation.
  • Change the default behavior of a JFrame of Lot Information.
  • when chargeCombo, dischargeCombo, supplierCombo, destinationCombo or real Quantity has been updated, ask the user to update Inventory before validate it.
  • avoid to close the windows on edit mode when the user has clean table and close the window directly.

@ArnaudFofou ArnaudFofou changed the title fix bug and enhance the code OP-1376 | Fix some Bug Jan 9, 2025
@@ -670,6 +670,8 @@ angal.hospital.visitduration.txt
angal.hospital.visitendhour.txt = Visit end hour
angal.hospital.visitstarthour.txt = Visit start hour
angal.inventory.addproduct.label = Add products
angal.inventory.allinventoryrowshouldhaverealqtygreatterthanzero.msg = All inventory(ies) row(s) should have real quantity greater than zero.
Copy link
Member

@mwithi mwithi Jan 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not true.... I try to explain again but please check that the whole code is consistent:

If the lot is NOT NEW, the real quantity CAN be zero, because we are doing an inventory and we are detecting that one existing product/lot is missing.
If the lot is NEW, the real quantity must be GREATER than zero, because it is not possibile to detect a new product/lot if it is missing.

In this extend, the message is not correct. But please, check the logic that uses this message.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have update the message

Copy link
Member

@mwithi mwithi Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you verify the logic if it really checks that only for new lots?

Copy link
Contributor Author

@ArnaudFofou ArnaudFofou Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@mwithi mwithi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks a lot!

@mwithi mwithi merged commit 699e696 into informatici:OP-1199-Main-Store-Inventory Jan 14, 2025
1 check passed
@mwithi mwithi changed the title OP-1376 | Fix some Bug OP-1376 OP-1377 | Fix some Bug Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants