mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
Merge pull request #19914 from nextchamp-saqib/cart-address-hotfix
fix: enable adding of address without enabling checkout feature
This commit is contained in:
@@ -76,10 +76,12 @@
|
|||||||
"ordered_qty",
|
"ordered_qty",
|
||||||
"planned_qty",
|
"planned_qty",
|
||||||
"column_break_69",
|
"column_break_69",
|
||||||
"delivered_qty",
|
|
||||||
"work_order_qty",
|
"work_order_qty",
|
||||||
|
"delivered_qty",
|
||||||
"produced_qty",
|
"produced_qty",
|
||||||
"returned_qty",
|
"returned_qty",
|
||||||
|
"shopping_cart_section",
|
||||||
|
"additional_notes",
|
||||||
"section_break_63",
|
"section_break_63",
|
||||||
"page_break",
|
"page_break",
|
||||||
"item_tax_rate",
|
"item_tax_rate",
|
||||||
@@ -741,11 +743,22 @@
|
|||||||
"fieldname": "image_section",
|
"fieldname": "image_section",
|
||||||
"fieldtype": "Section Break",
|
"fieldtype": "Section Break",
|
||||||
"label": "Image"
|
"label": "Image"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"collapsible": 1,
|
||||||
|
"fieldname": "shopping_cart_section",
|
||||||
|
"fieldtype": "Section Break",
|
||||||
|
"label": "Shopping Cart"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldname": "additional_notes",
|
||||||
|
"fieldtype": "Text",
|
||||||
|
"label": "Additional Notes"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"idx": 1,
|
"idx": 1,
|
||||||
"istable": 1,
|
"istable": 1,
|
||||||
"modified": "2019-10-10 08:46:26.244823",
|
"modified": "2019-12-11 18:06:26.238169",
|
||||||
"modified_by": "Administrator",
|
"modified_by": "Administrator",
|
||||||
"module": "Selling",
|
"module": "Selling",
|
||||||
"name": "Sales Order Item",
|
"name": "Sales Order Item",
|
||||||
|
|||||||
@@ -64,16 +64,6 @@ frappe.ready(() => {
|
|||||||
fieldtype: 'Data',
|
fieldtype: 'Data',
|
||||||
reqd: 1
|
reqd: 1
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: __('Address Type'),
|
|
||||||
fieldname: 'address_type',
|
|
||||||
fieldtype: 'Select',
|
|
||||||
options: [
|
|
||||||
'Billing',
|
|
||||||
'Shipping'
|
|
||||||
],
|
|
||||||
reqd: 1
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: __('Address Line 1'),
|
label: __('Address Line 1'),
|
||||||
fieldname: 'address_line1',
|
fieldname: 'address_line1',
|
||||||
@@ -96,16 +86,37 @@ frappe.ready(() => {
|
|||||||
fieldname: 'state',
|
fieldname: 'state',
|
||||||
fieldtype: 'Data'
|
fieldtype: 'Data'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: __('Country'),
|
||||||
|
fieldname: 'country',
|
||||||
|
fieldtype: 'Link',
|
||||||
|
options: 'Country',
|
||||||
|
reqd: 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
fieldname: "column_break0",
|
||||||
|
fieldtype: "Column Break",
|
||||||
|
width: "50%"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: __('Address Type'),
|
||||||
|
fieldname: 'address_type',
|
||||||
|
fieldtype: 'Select',
|
||||||
|
options: [
|
||||||
|
'Billing',
|
||||||
|
'Shipping'
|
||||||
|
],
|
||||||
|
reqd: 1
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: __('Pin Code'),
|
label: __('Pin Code'),
|
||||||
fieldname: 'pincode',
|
fieldname: 'pincode',
|
||||||
fieldtype: 'Data'
|
fieldtype: 'Data'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: __('Country'),
|
fieldname: "phone",
|
||||||
fieldname: 'country',
|
fieldtype: "Data",
|
||||||
fieldtype: 'Link',
|
label: "Phone"
|
||||||
reqd: 1
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
primary_action_label: __('Save'),
|
primary_action_label: __('Save'),
|
||||||
|
|||||||
@@ -83,12 +83,10 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if cart_settings.enable_checkout %}
|
|
||||||
<div class="cart-addresses mt-5">
|
<div class="cart-addresses mt-5">
|
||||||
{% include "templates/includes/cart/cart_address.html" %}
|
{% include "templates/includes/cart/cart_address.html" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row mt-5">
|
<div class="row mt-5">
|
||||||
|
|||||||
Reference in New Issue
Block a user