@@ -581,6 +654,17 @@ export default defineComponent({
})
}
+ function applyDiscountAll() {
+ isLoadingApplyDiscountOnOrder.value = true
+ store.dispatch('updateCurrentOrder', {
+ discount_rate: applyDiscountAmount.value
+ })
+ .then(() => {
+ isLoadingApplyDiscountOnOrder.value = false
+ closeApplyDiscount()
+ })
+ }
+
function printTicket() {
if (isLoadingPrintTicket.value) return
isLoadingPrintTicket.value = true
@@ -739,6 +823,7 @@ export default defineComponent({
printPreview,
applyDiscount,
confirmShipment,
+ applyDiscountAll,
closeReverseSales,
closeApplyDiscount,
completePreparedOrder,