Skip to content

Commit

Permalink
fix: dont upload price on unicommerce
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Apr 11, 2022
1 parent b2e0a66 commit 6a526e1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions ecommerce_integrations/unicommerce/grn.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ class GRNItemRow:
batch_number: str = ""
shelf_code: str = ""
item_details: str = ""
mrp: str = 0.0
unit_price: str = 0.0
mrp: str = ""
unit_price: str = ""

def get_ordered_fields(self):
return [
Expand Down Expand Up @@ -144,7 +144,6 @@ def _prepare_grn_import_csv(stock_entry) -> str:
vendor_code = frappe.db.get_single_value(SETTINGS_DOCTYPE, "vendor_code")

for item in stock_entry.items:
price = item.basic_rate
invoice_date = _get_unicommerce_format_date(stock_entry.posting_date)

batch_details = frappe.db.get_value(
Expand Down Expand Up @@ -175,8 +174,6 @@ def _prepare_grn_import_csv(stock_entry) -> str:
manufacturing_date=manufacturing_date,
expiry_date=expiry_date,
batch_number=item.batch_no,
mrp=price,
unit_price=price,
)
rows.append(row)

Expand Down

0 comments on commit 6a526e1

Please sign in to comment.