Skip to content

Commit

Permalink
запрет смены кол-ва услуг
Browse files Browse the repository at this point in the history
  • Loading branch information
Wellheor1 committed Sep 26, 2024
1 parent bfb0d79 commit 67f710b
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions l2-frontend/src/ui-cards/CashRegisters/ChequeModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,7 @@
{{ service.discountedCoast }}
</td>
<td class="text-center border">
<input
v-model.number="service.count"
min="1"
type="number"
:disabled="loading"
class="form-control nbr input-item"
@input="changeServiceCount(idx)"
>
{{ service.count }}
</td>
<td class="text-center border">
{{ service.total }}
Expand Down Expand Up @@ -315,15 +308,6 @@ const changeDiscountAbsolute = (index: number, discountStatic: boolean) => {
}
};
const changeServiceCount = (index) => {
if (!loading.value) {
const service = servicesCoasts.value[index];
if (service.count > 0) {
service.total = service.count * service.discountedCoast;
}
}
};
const totalServicesCoast = computed(() => {
let result = 0;
for (const service of servicesCoasts.value) {
Expand Down

0 comments on commit 67f710b

Please sign in to comment.