Skip to content

Commit

Permalink
chore: remove closingShift field from posOpeningShift
Browse files Browse the repository at this point in the history
  • Loading branch information
AbleKSaju committed Feb 24, 2025
1 parent 36ac18d commit 9b2f7d3
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 11 deletions.
1 change: 0 additions & 1 deletion models/inventory/Point of Sale/POSOpeningShift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export class POSOpeningShift extends Doc {
openingAmounts?: OpeningAmounts[];
openingCash?: OpeningCash[];
openingDate?: Date;
closingShift?: string;

get openingCashAmount() {
if (!this.openingCash) {
Expand Down
6 changes: 0 additions & 6 deletions schemas/app/inventory/Point of Sale/POSOpeningShift.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
"fieldtype": "Table",
"label": "Opening Amounts",
"target": "OpeningAmounts"
},
{
"fieldname": "closingShift",
"fieldtype": "Link",
"label": "Closing Shift",
"target": "POSClosingShift"
}
]
}
4 changes: 0 additions & 4 deletions src/pages/POS/ClosePOSShiftModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,6 @@ export default defineComponent({
this.posOpeningShiftDoc?.name
);
await this.posClosingShiftDoc?.sync();
await this.posOpeningShiftDoc?.setAndSync(
'closingShift',
this.posClosingShiftDoc?.name
);
await transferPOSCashAndWriteOff(
fyo,
this.posClosingShiftDoc as POSClosingShift
Expand Down

0 comments on commit 9b2f7d3

Please sign in to comment.