fix: Sider, Linter and Server Side Test

- Fix Server side PR test
- linter: re-arrange imports
- sider: avoid single line multi statement
- Code cleanup: Improve code readability and avoid horizontal scroll in test_purchase_receipt
- Removed unused variables in test_purchase_receipt
This commit is contained in:
marination
2021-11-16 14:22:26 +05:30
parent e9c75d6eea
commit 293f6cbafd
3 changed files with 427 additions and 119 deletions

View File

@@ -3,7 +3,7 @@
import frappe
from frappe import _, msgprint, ValidationError
from frappe import ValidationError, _, msgprint
from frappe.contacts.doctype.address.address import get_address_display
from frappe.utils import cint, cstr, flt, getdate
@@ -16,7 +16,9 @@ from erpnext.controllers.subcontracting import Subcontracting
from erpnext.stock.get_item_details import get_conversion_factor
from erpnext.stock.utils import get_incoming_rate
class QtyMismatchError(ValidationError): pass
class QtyMismatchError(ValidationError):
pass
class BuyingController(StockController, Subcontracting):