This commit is contained in:
Nabin Hait
2013-07-07 11:28:17 +05:30
parent fcd9434daf
commit a5be5c41cc
10 changed files with 218 additions and 88 deletions

View File

@@ -271,7 +271,7 @@ def make_purchase_invoice(source_name, target_doclist=None):
"purchase_rate": "rate"
},
"postprocess": update_item,
"condition": lambda doc: doc.amount==0 or doc.billed_amt < doc.amount
"condition": lambda doc: doc.amount==0 or doc.billed_amt < doc.import_amount
},
"Purchase Taxes and Charges": {
"doctype": "Purchase Taxes and Charges",