Merge pull request #16710 from deepeshgarg007/purchase-qty-fix

Received Qty Label rename to accepted qty in purchase invoice
This commit is contained in:
Nabin Hait 2019-02-19 15:06:18 +05:30 committed by GitHub
commit 2c65ef0286
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 6 deletions

View File

@ -9,9 +9,12 @@ erpnext.accounts.PurchaseInvoice = erpnext.buying.BuyingController.extend({
this.setup_posting_date_time_check(); this.setup_posting_date_time_check();
this._super(doc); this._super(doc);
// formatter for material request item // formatter for purchase invoice item
this.frm.set_indicator_formatter('item_code', if(this.frm.doc.update_stock) {
function(doc) { return (doc.qty<=doc.received_qty) ? "green" : "orange" }) this.frm.set_indicator_formatter('item_code', function(doc) {
return (doc.qty<=doc.received_qty) ? "green" : "orange";
});
}
}, },
onload: function() { onload: function() {
this._super(); this._super();

View File

@ -2626,7 +2626,7 @@
"issingle": 0, "issingle": 0,
"istable": 1, "istable": 1,
"max_attachments": 0, "max_attachments": 0,
"modified": "2019-02-18 19:03:19.250250", "modified": "2019-02-18 19:03:19.250280",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Accounts", "module": "Accounts",
"name": "Purchase Invoice Item", "name": "Purchase Invoice Item",

View File

@ -417,7 +417,7 @@
"in_global_search": 0, "in_global_search": 0,
"in_list_view": 0, "in_list_view": 0,
"in_standard_filter": 0, "in_standard_filter": 0,
"label": "Recd Quantity", "label": "Received Quantity",
"length": 0, "length": 0,
"no_copy": 0, "no_copy": 0,
"oldfieldname": "received_qty", "oldfieldname": "received_qty",
@ -2608,7 +2608,7 @@
"issingle": 0, "issingle": 0,
"istable": 1, "istable": 1,
"max_attachments": 0, "max_attachments": 0,
"modified": "2019-01-07 16:51:59.002215", "modified": "2019-02-18 16:04:36.138776",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Stock", "module": "Stock",
"name": "Purchase Receipt Item", "name": "Purchase Receipt Item",