Fixes in patches

This commit is contained in:
Nabin Hait 2011-12-21 11:22:32 +05:30
parent 63b94c42e4
commit 53ef4009ba
3 changed files with 3 additions and 2 deletions

View File

@ -49,7 +49,7 @@ def update_status():
sql("""update `tabDelivery Note` set billing_status = if(ifnull(per_billed,0) < 0.001, 'Not Billed',
if(per_billed >= 99.99, 'Fully Billed', 'Partly Billed'))""")
def run_patch():
def execute():
update_delivered_billed_qty()
update_percent()
update_status()

View File

@ -10,4 +10,4 @@ def execute():
for d in ['Receivable Voucher', 'Delivery Note', 'Sales Order', 'Quotation']:
sql("update `tab%s` set price_list_currency = currency, plc_conversion_rate = conversion_rate" % d)
webnotes.conn.sql("update `tab%s` set price_list_currency = currency, plc_conversion_rate = conversion_rate" % d)

View File

@ -2,6 +2,7 @@ def execute():
import webnotes
sql = webnotes.conn.sql
from webnotes.model.code import get_obj
from webnotes.utils import flt
# update incoming rate in serial nos
sr = sql("""select name, item_code, purchase_document_no from `tabSerial No`