fix: process payment when makeAutoPayment is enabled

This commit is contained in:
AbleKSaju
2025-03-21 09:58:58 +05:30
parent d4e6d7dddc
commit 493a3b1e08
+4
View File
@@ -649,6 +649,10 @@ export default defineComponent({
},
async makePayment(shouldPrint: boolean) {
this.paymentDoc = this.sinvDoc.getPayment() as Payment;
if (!this.paymentDoc) {
return null;
}
const paymentMethod = this.paymentMethod;
await this.paymentDoc.set('paymentMethod', paymentMethod);