2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Merge pull request #123 from rmehta/feat-partial-payments

This commit is contained in:
Faris Ansari 2020-05-06 23:36:23 +05:30 committed by GitHub
commit 05566bb95f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View File

@ -20,7 +20,7 @@ module.exports = {
fieldname: 'date',
label: 'Posting Date',
fieldtype: 'Date',
defaultValue: new Date().toISOString()
default: new Date().toISOString()
},
{
fieldname: 'account',
@ -102,8 +102,7 @@ module.exports = {
label: 'Amount',
fieldtype: 'Currency',
required: 1,
readOnly: 1,
formula: doc => doc.getSum('for', 'amount')
default: doc => doc.getSum('for', 'amount')
},
{
fieldname: 'writeoff',

View File

@ -42,6 +42,11 @@ const config = {
route: '/list/Item',
doctype: 'Item'
},
{
label: _('Payments'),
route: '/list/Payment',
doctype: 'Payment'
},
{
label: _('Journal Entry'),
route: '/list/JournalEntry',
@ -71,6 +76,11 @@ const config = {
route: '/list/Item',
doctype: 'Item'
},
{
label: _('Payments'),
route: '/list/Payment',
doctype: 'Payment'
},
{
label: _('Journal Entry'),
route: '/list/JournalEntry',