chore: Update records
This commit is contained in:
parent
26ee50269a
commit
c850f46c0a
@ -1,6 +1,7 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"doctype": "Payment Entry",
|
"doctype": "Payment Entry",
|
||||||
|
"payment_type": "Receive",
|
||||||
"party_type": "Customer",
|
"party_type": "Customer",
|
||||||
"party": "ABC Enterprises",
|
"party": "ABC Enterprises",
|
||||||
"paid_amount": 67000,
|
"paid_amount": 67000,
|
||||||
@ -8,5 +9,49 @@
|
|||||||
"reference_no": "#ref0001",
|
"reference_no": "#ref0001",
|
||||||
"source_exchange_rate": 1,
|
"source_exchange_rate": 1,
|
||||||
"target_exchange_rate": 1
|
"target_exchange_rate": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "Payment Entry",
|
||||||
|
"payment_type": "Receive",
|
||||||
|
"party_type": "Customer",
|
||||||
|
"party": "XYZ Corporation",
|
||||||
|
"paid_amount": 500000,
|
||||||
|
"received_amount": 500000,
|
||||||
|
"reference_no": "#ref0001",
|
||||||
|
"source_exchange_rate": 1,
|
||||||
|
"target_exchange_rate": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "Payment Entry",
|
||||||
|
"payment_type": "Receive",
|
||||||
|
"party_type": "Customer",
|
||||||
|
"party": "KJPR Pvt. Ltd.",
|
||||||
|
"paid_amount": 300000,
|
||||||
|
"received_amount": 30000,
|
||||||
|
"reference_no": "#ref0001",
|
||||||
|
"source_exchange_rate": 1,
|
||||||
|
"target_exchange_rate": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "Payment Entry",
|
||||||
|
"payment_type": "Pay",
|
||||||
|
"party_type": "Supplier",
|
||||||
|
"party": "DQ Industries",
|
||||||
|
"paid_amount": 85000,
|
||||||
|
"received_amount": 85000,
|
||||||
|
"reference_no": "#ref0005",
|
||||||
|
"source_exchange_rate": 1,
|
||||||
|
"target_exchange_rate": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"doctype": "Payment Entry",
|
||||||
|
"payment_type": "Pay",
|
||||||
|
"party_type": "Supplier",
|
||||||
|
"party": "KC Corp.",
|
||||||
|
"paid_amount": 100000,
|
||||||
|
"received_amount": 100000,
|
||||||
|
"reference_no": "#ref0006",
|
||||||
|
"source_exchange_rate": 1,
|
||||||
|
"target_exchange_rate": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -25,8 +25,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU002",
|
"item_code": "SKU002",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 50.0,
|
||||||
"rate": 400.0,
|
"rate": 300.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -41,8 +41,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU003",
|
"item_code": "SKU003",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 75.0,
|
||||||
"rate": 400.0,
|
"rate": 523.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -57,8 +57,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU004",
|
"item_code": "SKU004",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 60.0,
|
||||||
"rate": 400.0,
|
"rate": 725.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -73,8 +73,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU005",
|
"item_code": "SKU005",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 82.0,
|
||||||
"rate": 400.0,
|
"rate": 222.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -89,8 +89,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU006",
|
"item_code": "SKU006",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 50.0,
|
||||||
"rate": 400.0,
|
"rate": 420.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -105,8 +105,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU007",
|
"item_code": "SKU007",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 90.0,
|
||||||
"rate": 400.0,
|
"rate": 375.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -121,8 +121,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU008",
|
"item_code": "SKU008",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 121.0,
|
||||||
"rate": 400.0,
|
"rate": 333.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -137,8 +137,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU009",
|
"item_code": "SKU009",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 76.0,
|
||||||
"rate": 400.0,
|
"rate": 700.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -153,8 +153,8 @@
|
|||||||
"doctype": "Purchase Invoice Item",
|
"doctype": "Purchase Invoice Item",
|
||||||
"item_code": "SKU010",
|
"item_code": "SKU010",
|
||||||
"parentfield": "items",
|
"parentfield": "items",
|
||||||
"qty": 100.0,
|
"qty": 78.0,
|
||||||
"rate": 400.0,
|
"rate": 500.0,
|
||||||
"conversion_factor": 1
|
"conversion_factor": 1
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -454,6 +454,7 @@ def install_defaults(args=None): # nosemgrep
|
|||||||
|
|
||||||
set_global_defaults(args)
|
set_global_defaults(args)
|
||||||
update_stock_settings()
|
update_stock_settings()
|
||||||
|
update_shopping_cart_settings(args)
|
||||||
|
|
||||||
args.update({"set_default": 1})
|
args.update({"set_default": 1})
|
||||||
create_bank_account(args)
|
create_bank_account(args)
|
||||||
@ -528,6 +529,20 @@ def create_bank_account(args):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
def update_shopping_cart_settings(args): # nosemgrep
|
||||||
|
shopping_cart = frappe.get_doc("E Commerce Settings")
|
||||||
|
shopping_cart.update(
|
||||||
|
{
|
||||||
|
"enabled": 1,
|
||||||
|
"company": args.company_name,
|
||||||
|
"price_list": frappe.db.get_value("Price List", {"selling": 1}),
|
||||||
|
"default_customer_group": _("Individual"),
|
||||||
|
"quotation_series": "QTN-",
|
||||||
|
}
|
||||||
|
)
|
||||||
|
shopping_cart.update_single(shopping_cart.get_valid_dict())
|
||||||
|
|
||||||
|
|
||||||
def get_fy_details(fy_start_date, fy_end_date):
|
def get_fy_details(fy_start_date, fy_end_date):
|
||||||
start_year = getdate(fy_start_date).year
|
start_year = getdate(fy_start_date).year
|
||||||
if start_year == getdate(fy_end_date).year:
|
if start_year == getdate(fy_end_date).year:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user