mirror of
https://github.com/frappe/books.git
synced 2025-02-09 15:38:39 +00:00
Merge pull request #123 from rmehta/feat-partial-payments
This commit is contained in:
commit
05566bb95f
@ -20,7 +20,7 @@ module.exports = {
|
|||||||
fieldname: 'date',
|
fieldname: 'date',
|
||||||
label: 'Posting Date',
|
label: 'Posting Date',
|
||||||
fieldtype: 'Date',
|
fieldtype: 'Date',
|
||||||
defaultValue: new Date().toISOString()
|
default: new Date().toISOString()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: 'account',
|
fieldname: 'account',
|
||||||
@ -102,8 +102,7 @@ module.exports = {
|
|||||||
label: 'Amount',
|
label: 'Amount',
|
||||||
fieldtype: 'Currency',
|
fieldtype: 'Currency',
|
||||||
required: 1,
|
required: 1,
|
||||||
readOnly: 1,
|
default: doc => doc.getSum('for', 'amount')
|
||||||
formula: doc => doc.getSum('for', 'amount')
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
fieldname: 'writeoff',
|
fieldname: 'writeoff',
|
||||||
|
@ -42,6 +42,11 @@ const config = {
|
|||||||
route: '/list/Item',
|
route: '/list/Item',
|
||||||
doctype: 'Item'
|
doctype: 'Item'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: _('Payments'),
|
||||||
|
route: '/list/Payment',
|
||||||
|
doctype: 'Payment'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: _('Journal Entry'),
|
label: _('Journal Entry'),
|
||||||
route: '/list/JournalEntry',
|
route: '/list/JournalEntry',
|
||||||
@ -71,6 +76,11 @@ const config = {
|
|||||||
route: '/list/Item',
|
route: '/list/Item',
|
||||||
doctype: 'Item'
|
doctype: 'Item'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: _('Payments'),
|
||||||
|
route: '/list/Payment',
|
||||||
|
doctype: 'Payment'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: _('Journal Entry'),
|
label: _('Journal Entry'),
|
||||||
route: '/list/JournalEntry',
|
route: '/list/JournalEntry',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user