Merge pull request #23511 from marination/sales-order-project

fix: Show Project under Create button in SO
This commit is contained in:
rohitwaghchaure 2020-10-05 13:17:48 +05:30 committed by GitHub
commit 96fadb7c9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -181,7 +181,7 @@ erpnext.selling.SalesOrderController = erpnext.selling.SellingController.extend(
}
// project
if(flt(doc.per_delivered, 2) < 100 && (order_is_a_sale || order_is_a_custom_sale) && allow_delivery) {
if(flt(doc.per_delivered, 2) < 100) {
this.frm.add_custom_button(__('Project'), () => this.make_project(), __('Create'));
}