mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
Fixes in patches
This commit is contained in:
@@ -49,7 +49,7 @@ def update_status():
|
|||||||
sql("""update `tabDelivery Note` set billing_status = if(ifnull(per_billed,0) < 0.001, 'Not Billed',
|
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'))""")
|
if(per_billed >= 99.99, 'Fully Billed', 'Partly Billed'))""")
|
||||||
|
|
||||||
def run_patch():
|
def execute():
|
||||||
update_delivered_billed_qty()
|
update_delivered_billed_qty()
|
||||||
update_percent()
|
update_percent()
|
||||||
update_status()
|
update_status()
|
||||||
|
|||||||
@@ -10,4 +10,4 @@ def execute():
|
|||||||
|
|
||||||
|
|
||||||
for d in ['Receivable Voucher', 'Delivery Note', 'Sales Order', 'Quotation']:
|
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)
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ def execute():
|
|||||||
import webnotes
|
import webnotes
|
||||||
sql = webnotes.conn.sql
|
sql = webnotes.conn.sql
|
||||||
from webnotes.model.code import get_obj
|
from webnotes.model.code import get_obj
|
||||||
|
from webnotes.utils import flt
|
||||||
|
|
||||||
# update incoming rate in serial nos
|
# update incoming rate in serial nos
|
||||||
sr = sql("""select name, item_code, purchase_document_no from `tabSerial No`
|
sr = sql("""select name, item_code, purchase_document_no from `tabSerial No`
|
||||||
|
|||||||
Reference in New Issue
Block a user