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
feat(pos): multiple item prices #33005
feat(pos): multiple item prices #33005
Conversation
ssiyad
commented
Nov 17, 2022
- show uom with product price
- multiple item (variant) depending on uom
feat: show uom with product price feat: multiple item (variant) depending on uom Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #33005 +/- ##
===========================================
- Coverage 63.87% 63.85% -0.03%
===========================================
Files 818 818
Lines 59119 59140 +21
===========================================
- Hits 37764 37761 -3
- Misses 21355 21379 +24
|
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
fda3841
to
b9e30dc
Compare
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
7c7761a
to
404de1e
Compare
item_code = result.get("item_code", search_term) | ||
serial_no = result.get("serial_no", "") | ||
batch_no = result.get("batch_no", "") | ||
barcode = result.get("barcode", "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you aware that
{}.get("barcode", "")
is equal to{}.get("barcode") or ""
, but{"barcode": None}.get("barcode") or ""
returns""
while{"barcode": None}.get("barcode", "")
returnsNone
?
So, your changes could produce None
values, while the former code didn't. Is that what was intended here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Valid point, but search_for_serial_or_batch_or_barcode_number()
(which use scan_barcode()
) does not return explicit None
values.
Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
keep-alive |