2
0
mirror of https://github.com/frappe/books.git synced 2025-01-09 17:53:56 +00:00

fix: Rename 'Pending' to 'Unpaid'

This commit is contained in:
Faris Ansari 2020-01-02 22:38:39 +05:30
parent 3429abc3c8
commit 1dcdc1c898

View File

@ -10,7 +10,7 @@ module.exports = {
fieldname: 'status', fieldname: 'status',
fieldtype: 'Select', fieldtype: 'Select',
render(doc) { render(doc) {
let status = 'Pending'; let status = 'Unpaid';
let color = 'orange'; let color = 'orange';
if (!doc.submitted) { if (!doc.submitted) {
status = 'Draft'; status = 'Draft';
@ -44,7 +44,13 @@ module.exports = {
openQuickEdit({ openQuickEdit({
doctype: 'Payment', doctype: 'Payment',
name: payment.name, name: payment.name,
hideFields: ['party', 'date', hideAccountField, 'paymentType', 'for'], hideFields: [
'party',
'date',
hideAccountField,
'paymentType',
'for'
],
defaults: { defaults: {
party, party,
[hideAccountField]: doc.account, [hideAccountField]: doc.account,