mirror of
https://github.com/frappe/books.git
synced 2024-12-23 11:29:03 +00:00
fix: Generic make payment
This commit is contained in:
parent
6050db3c79
commit
5df933308d
@ -208,13 +208,13 @@ export default {
|
||||
name: payment.name,
|
||||
hideFields: ['party', 'date', 'account', 'paymentType', 'for'],
|
||||
values: {
|
||||
party: this.doc.customer,
|
||||
party: this.doc[this.partyField.fieldname],
|
||||
account: this.doc.account,
|
||||
date: new Date().toISOString().slice(0, 10),
|
||||
paymentType: 'Receive',
|
||||
paymentType: this.doctype === 'SalesInvoice' ? 'Receive' : 'Pay',
|
||||
for: [
|
||||
{
|
||||
referenceType: 'SalesInvoice',
|
||||
referenceType: this.doctype,
|
||||
referenceName: this.doc.name,
|
||||
amount: this.doc.outstandingAmount
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user