fix: Enhancement in credit note (#18511)

* fix: Credit note enhancement

* Fix: Print format for Sales Invoice Return

* fix: Zero quantity validation fix for credit note
This commit is contained in:
Deepesh Garg
2019-07-31 15:58:19 +05:30
committed by Nabin Hait
parent 36c724d7b5
commit d301d26fda
7 changed files with 182 additions and 4 deletions

View File

@@ -60,7 +60,9 @@ class AccountsController(TransactionBase):
def validate(self):
self.validate_qty_is_not_zero()
if not self.get('is_return'):
self.validate_qty_is_not_zero()
if self.get("_action") and self._action != "update_after_submit":
self.set_missing_values(for_validate=True)