diff --git a/models/inventory/Point of Sale/POSShift.ts b/models/inventory/Point of Sale/POSShift.ts
index ff9e6134..b56fc859 100644
--- a/models/inventory/Point of Sale/POSShift.ts
+++ b/models/inventory/Point of Sale/POSShift.ts
@@ -5,13 +5,13 @@ import { OpeningAmounts } from './OpeningAmounts';
import { OpeningCash } from './OpeningCash';
export class POSShift extends Doc {
- isShiftOpen?: boolean;
- openingDate?: Date;
- closingDate?: Date;
- openingAmounts?: OpeningAmounts[];
closingAmounts?: ClosingAmounts[];
- openingCash?: OpeningCash[];
closingCash?: ClosingCash[];
+ closingDate?: Date;
+ isShiftOpen?: boolean;
+ openingAmounts?: OpeningAmounts[];
+ openingCash?: OpeningCash[];
+ openingDate?: Date;
get openingCashAmount() {
if (!this.openingCash) {
diff --git a/src/components/POS/SelectedItemRow.vue b/src/components/POS/SelectedItemRow.vue
index 74f375ad..d4e8b4c9 100644
--- a/src/components/POS/SelectedItemRow.vue
+++ b/src/components/POS/SelectedItemRow.vue
@@ -95,6 +95,7 @@
setTransferUnit((row.transferUnit = value))"
/>
+ (row.rate = value)"
+ />
+
+
+
+ setItemDiscount('amount', value)"
+ />
+
+
+
+ setItemDiscount('percent', value)"
+ />
+
+
+
+
setSerialNumber(value)"
/>
-
-
-
-
- (row.rate = value)"
- />
-
-
-
-
- setItemDiscount('amount', value)"
- />
-
-
-
- setItemDiscount('percent', value)"
- />
-
@@ -268,6 +274,7 @@ export default defineComponent({
emits: ['removeItem', 'setItemSerialNumbers'],
setup() {
return {
+ isDiscountingEnabled: inject('isDiscountingEnabled') as boolean,
itemSerialNumbers: inject('itemSerialNumbers') as {
[item: string]: string;
},
@@ -282,6 +289,11 @@ export default defineComponent({
defaultRate: this.row.rate as Money,
};
},
+ computed: {
+ isUOMConversionEnabled(): boolean {
+ return !!fyo.singles.InventorySettings?.enableUomConversions;
+ },
+ },
methods: {
async getAvailableQtyInBatch(): Promise {
if (!this.row.batch) {
diff --git a/src/components/POS/SelectedItemTable.vue b/src/components/POS/SelectedItemTable.vue
index 5813705c..1713a16e 100644
--- a/src/components/POS/SelectedItemTable.vue
+++ b/src/components/POS/SelectedItemTable.vue
@@ -42,19 +42,31 @@
+