-
Notifications
You must be signed in to change notification settings - Fork 684
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: point of sale #709
feat: point of sale #709
Conversation
caf0a9f
to
d4ee09f
Compare
bfff49e
to
b6b861f
Compare
@akshayitzme regarding the 3 failing tests cases. I'd suggest debugging the DB state using the CI env. A thing to check is, have prior async statements been awaited. I think this might be the cause. I've faced similar issues before where this was the root cause. Reasoning: CI takes This could mean that on the faster computer, a non-awaited statement has a higher chance of executing completely before Where as on the slower computer (∵ of slower IOPS), the non-awaited statement hasn't completed its execution when Debugging: Start with the test file ( One way to substantiate this hypothesis is to place a sufficiently long sleep statement before |
Thanks! .. I'll check |
@18alantom, regarding the previously failed unit tests, I crafted a Linux VM with 1024 MB RAM and one processor core. adjusted the Processor Execution Cap accordingly to emulate a slower IOPS machine. a dry run of the unit test took I ran the tests against this branch. Yep, got em. I checked for any missing Solution: that fixed the failing tests. @18alantom, Could you review this PR when you get time ? |
3944476
to
8d31147
Compare
e3f6c24
to
a769537
Compare
This PR brings the Point of Sale feature to Frappe Books!
Update / Create Schemas for POS
New Schemas & Models
(extends: Cash Denominations, to let the user enter opening cash amount in denomination wise)
(extends: Cash Denominations, to let the user enter closing cash amount in denomination wise)
(extends: POS Shift Amounts, records Opening Amounts of Cash and Transfer)
(extends: POS Shift Amounts, records Closing Amounts of Cash and Transfer)
POS User Interface
New Pages
New Components
✅ POS Features & Functionalities
Enable/Disable POS
POS Opening Shift
Items Table (table below the Item Search)
trackItem
enabledSelected Items Table (table below the Party Search)
hasSerialNumber
(for SHPM)Action Buttons & Totals Display
Payment Modal
Close POS Shift
Effects on Accounts (feel free to evaluate)
When POS Shift is Opened
Users can mention the Opening Amounts of Cash and Transfer payment methods when creating a POS Shift.
If an Opening Cash Amount is set, a Journal Entry will be created to transfer the Opening Cash Amount from Cash account to Counter Cash account (Counter Cash Account must be set beforehand in the POS Settings).
Opening Amounts
Journal Entry
SINV Payments
When POS Shift is Closed
Expected and Closing Amounts are equal
Journal Entry
Closing Amount < Expected Amount (shortage of Cash)
Journal Entry
Closing Amount > Expected Amount (excess of Cash)
Journal Entry
References
POS Icon Source: store-3-fill - RemixIcon