From deb9fdbe9a30b7c7232dcc0fce0ce51bbcd494a6 Mon Sep 17 00:00:00 2001 From: Vikas8600 Date: Mon, 17 Apr 2023 11:45:06 +0530 Subject: [PATCH] feat: added valuation rate --- ecommerce_integrations/unicommerce/delivery_note.py | 1 - ecommerce_integrations/unicommerce/product.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/ecommerce_integrations/unicommerce/delivery_note.py b/ecommerce_integrations/unicommerce/delivery_note.py index 1c704745..3c26d093 100644 --- a/ecommerce_integrations/unicommerce/delivery_note.py +++ b/ecommerce_integrations/unicommerce/delivery_note.py @@ -112,7 +112,6 @@ def create_delivery_note(order, settings, so): res.shipment_id = order["code"] res.save() res.submit() - frappe.logger("log2").exception(res) # delivery_note = DeliveryNote(res) # frappe.logger("log3").exception(delivery_note) # delivery_note.update({ diff --git a/ecommerce_integrations/unicommerce/product.py b/ecommerce_integrations/unicommerce/product.py index 0f88d8f0..e71f03ca 100644 --- a/ecommerce_integrations/unicommerce/product.py +++ b/ecommerce_integrations/unicommerce/product.py @@ -290,6 +290,7 @@ def _build_unicommerce_item(item_code: ItemCode) -> JsonDict: item_json["hsnCode"] = frappe.get_value("Item",item.name,"gst_hsn_code") item_json["description"] = frappe.get_value("Item",item.name,"description") item_json["gstTaxTypeCode"] = frappe.get_value("Item Tax",{"parent":item.name},"item_tax_template") + item_json["costPrice"] = item.valuation_rate return item_json