[cleanup] request for quotation cleanup

This commit is contained in:
Rushabh Mehta
2016-03-29 16:04:25 +05:30
parent 22fe3a8b7e
commit 7a1b5da830
13 changed files with 144 additions and 96 deletions

View File

@@ -69,11 +69,10 @@
</div>
{% endif %}
<div class="row terms">
<div class="col-xs-5 text-left text-muted">{{ _("Terms and Conditions: ") }}</div>
</div>
<div class="row terms">
<div class="col-xs-5 text-left text-muted">
<textarea class="form-control terms-feedback" style="border:1px solid #cccccc; padding:4px"></textarea>
<div class="col-xs-6">
<br><br>
<p class="text-muted small">{{ _("Notes: ") }}</p>
<textarea class="form-control terms-feedback" style="height: 100px;"></textarea>
</div>
</div>
</div>

View File

@@ -25,7 +25,7 @@ def get_supplier():
def check_supplier_has_docname_access(supplier):
status = True
if frappe.form_dict.name not in frappe.db.sql_list("""select parent from `tabRFQ Supplier`
if frappe.form_dict.name not in frappe.db.sql_list("""select parent from `tabRequest for Quotation Supplier`
where supplier = '{supplier}'""".format(supplier=supplier)):
status = False
return status