mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
fix: process payment when makeAutoPayment is enabled
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user