diff --git a/label_printing/public/js/label_printing.min.js b/label_printing/public/js/label_printing.min.js
index d226e2b..5c1d3c9 100644
--- a/label_printing/public/js/label_printing.min.js
+++ b/label_printing/public/js/label_printing.min.js
@@ -1,2 +1,2 @@
-!function(){"use strict";function e(e,a){var t;return frappe.call({method:"frappe.client.get",async:!1,args:{doctype:e,name:a},callback:function(e){e.message&&(t=e.message)}}),t}$(document).ready(function(){$(".dropdown-notifications").after('
'),$("#labels-toolbar").click(function(a){!function(a){var t=a.view.cur_frm,l={doctype:"",docname:"",item_code:"",item_name:"",delivery_date:"",customer:"",batch:"",information:"",total_amount:0,labels:[{item_qty:0,label_qty:0}]};null!==t&&("Work Order"!==t.doctype&&"Item"!==t.doctype||t.docname&&(l.doctype=t.doctype,l.docname=t.docname));var i=new frappe.ui.Dialog({title:__("Print Labels"),fields:[{label:__("Reference Doctype"),options:["Work Order","Item"],fieldname:"doctype",fieldtype:"Select",default:l.doctype},{label:__("Get data"),fieldname:"get_data",fieldtype:"Button",click:function(){n()}},{fieldtype:"Column Break"},{label:__("Reference Docname"),fieldname:"docname",fieldtype:"Data",options:"doctype",default:l.docname},{fieldtype:"Section Break",label:__("Information")},{label:__("Item Code"),fieldname:"item_code",fieldtype:"Data"},{label:__("Item Name"),fieldname:"item_name",fieldtype:"Data"},{label:__("Delivery Date"),fieldname:"delivery_date",fieldtype:"Date"},{fieldtype:"Column Break"},{label:__("Customer"),fieldname:"customer",fieldtype:"Data"},{label:__("Batch"),fieldname:"batch",fieldtype:"Data"},{fieldtype:"Section Break",label:__("Labels")},{fieldname:"labels",fieldtype:"Table",cannot_add_rows:!1,in_place_edit:!0,data:l.labels,get_data:function(){return l.labels},fields:[{fieldtype:"Int",fieldname:"item_qty",in_list_view:1,label:__("Item Qty")},{label:__("Label Qty"),fieldname:"label_qty",in_list_view:1,fieldtype:"Int"},{fieldtype:"Data",fieldname:"information",in_list_view:1,label:__("Information")}]}],primary_action_label:"Print",primary_action:function(e){l=e,frappe.call({method:"label_printing.api.print_label",args:{values:l},callback:function(e){200===e.message&&frappe.show_alert("Label printing successful",5)}}),i.hide()}});function n(){if((l=i.get_values()).doctype&&l.docname){var a=e(l.doctype,l.docname);if("Work Order"===l.doctype){var t=e("Item",a.production_item);if(frappe.call({method:"label_printing.api.get_associated_stockentry",async:!1,args:{workorder:l.docname},callback:function(e){e.message&&(l.batch=e.message.items[e.message.items.length-1].batch_no)}}),l.item_code=t.item_code,l.item_name=t.item_name,l.delivery_date=a.expected_delivery_date,l.labels[0].item_qty=a.qty,l.labels[0].label_qty=1,t.associated_company){var n=e("Customer",t.associated_company);n.short_name?l.customer=n.short_name:l.customer=t.associated_company}l.total_amount=a.qty,l.labels[0].qty_per_label=a.qty,i.fields_dict.labels.refresh()}else if("Item"===l.doctype){var o=e("Item",a.item_code);if(l.item_code=a.item_code,l.item_name=a.item_name,o.associated_company){var c=e("Customer",a.associated_company);c.short_name?l.customer=c.short_name:l.customer=a.associated_company}}i.set_values(l)}}n(),i.show(),i.fields_dict.doctype.$input.on("change",function(){i.fields_dict.docname.refresh()})}(a)})})}();
+!function(){"use strict";function e(e,a){var t;return frappe.call({method:"frappe.client.get",async:!1,args:{doctype:e,name:a},callback:function(e){e.message&&(t=e.message)}}),t}$(document).ready(function(){$(".dropdown-notifications").after(''),$("#labels-toolbar").click(function(a){!function(a){var t=a.view.cur_frm,l={doctype:"",docname:"",item_code:"",item_name:"",delivery_date:"",customer:"",batch:"",information:"",total_amount:0,labels:[{item_qty:0,label_qty:0,information:""}]};null!==t&&("Work Order"!==t.doctype&&"Item"!==t.doctype||t.docname&&(l.doctype=t.doctype,l.docname=t.docname));var i=new frappe.ui.Dialog({title:__("Print Labels"),fields:[{label:__("Reference Doctype"),options:["Work Order","Item","Label"],fieldname:"doctype",fieldtype:"Select",default:l.doctype},{label:__("Get data"),fieldname:"get_data",fieldtype:"Button",click:function(){n()}},{fieldtype:"Column Break"},{label:__("Reference Docname"),fieldname:"docname",fieldtype:"Data",options:"doctype",default:l.docname},{fieldtype:"Section Break",label:__("Information")},{label:__("Item Code"),fieldname:"item_code",fieldtype:"Data"},{label:__("Item Name"),fieldname:"item_name",fieldtype:"Data"},{label:__("Delivery Date"),fieldname:"delivery_date",fieldtype:"Date"},{fieldtype:"Column Break"},{label:__("Customer"),fieldname:"customer",fieldtype:"Data"},{label:__("Batch"),fieldname:"batch",fieldtype:"Data"},{fieldtype:"Section Break",label:__("Labels")},{fieldname:"labels",fieldtype:"Table",cannot_add_rows:!1,in_place_edit:!0,data:l.labels,get_data:function(){return l.labels},fields:[{fieldtype:"Int",fieldname:"item_qty",in_list_view:1,label:__("Item Qty")},{label:__("Label Qty"),fieldname:"label_qty",in_list_view:1,fieldtype:"Int"},{fieldtype:"Data",fieldname:"information",in_list_view:1,label:__("Information")}]}],primary_action_label:"Print",primary_action:function(e){l=e,frappe.call({method:"label_printing.api.print_label",args:{values:l},callback:function(e){200===e.message&&frappe.show_alert("Label printing successful",5)}}),i.hide()}});function n(){if((l=i.get_values()).doctype&&l.docname){var a=e(l.doctype,l.docname);if("Work Order"===l.doctype){var t=e("Item",a.production_item);if(frappe.call({method:"label_printing.api.get_associated_stockentry",async:!1,args:{workorder:l.docname},callback:function(e){e.message&&(l.batch=e.message.items[e.message.items.length-1].batch_no)}}),l.item_code=t.item_code,l.item_name=t.item_name,l.delivery_date=a.expected_delivery_date,l.labels[0].item_qty=a.qty,l.labels[0].label_qty=1,t.associated_company){var n=e("Customer",t.associated_company);n.short_name?l.customer=n.short_name:l.customer=t.associated_company}l.total_amount=a.qty,l.labels[0].qty_per_label=a.qty,i.fields_dict.labels.refresh()}else if("Item"===l.doctype){var o=e("Item",a.item_code);if(l.item_code=a.item_code,l.item_name=a.item_name,o.associated_company){var c=e("Customer",a.associated_company);c.short_name?l.customer=c.short_name:l.customer=a.associated_company}}i.set_values(l)}}n(),i.show(),i.fields_dict.doctype.$input.on("change",function(){i.fields_dict.docname.refresh()})}(a)})})}();
//# sourceMappingURL=label_printing.min.js.map
diff --git a/label_printing/public/js/label_printing.min.js.map b/label_printing/public/js/label_printing.min.js.map
index f32071c..8582e1e 100644
--- a/label_printing/public/js/label_printing.min.js.map
+++ b/label_printing/public/js/label_printing.min.js.map
@@ -1 +1 @@
-{"version":3,"file":"label_printing.min.js","sources":["../../../../apps/label_printing/label_printing/public/js/label_printing_desk.js"],"sourcesContent":["$(document).ready(function () {\n $(\".dropdown-notifications\").after('');\n $(\"#labels-toolbar\").click(function (page) {\n setupLabelsDialog(page);\n });\n\n});\n\n\n\nfunction setupLabelsDialog(page) {\n let cur_frm = page.view.cur_frm\n\n let fields = {\n doctype: '',\n docname: '',\n item_code: '',\n item_name: '',\n delivery_date: '',\n customer: '',\n batch: '',\n information: '',\n total_amount: 0,\n labels: [{\n item_qty: 0,\n label_qty: 0,\n }]\n };\n\n\n if (cur_frm !== null) {\n if (cur_frm.doctype === \"Work Order\" || cur_frm.doctype === \"Item\") {\n if (cur_frm.docname) {\n fields.doctype = cur_frm.doctype\n fields.docname = cur_frm.docname\n }\n }\n }\n\n let d = new frappe.ui.Dialog({\n title: __(\"Print Labels\"),\n fields: [{\n label: __(\"Reference Doctype\"),\n options: ['Work Order', 'Item'],\n fieldname: 'doctype',\n fieldtype: 'Select',\n default: fields.doctype,\n },\n {\n label: __(\"Get data\"),\n fieldname: 'get_data',\n fieldtype: 'Button',\n click: () => {\n handleDataFetch()\n }\n },\n {\n fieldtype: 'Column Break'\n },\n {\n label: __(\"Reference Docname\"),\n fieldname: 'docname',\n fieldtype: 'Data',\n options: 'doctype',\n default: fields.docname,\n },\n {\n fieldtype: 'Section Break',\n label: __('Information')\n },\n {\n label: __(\"Item Code\"),\n fieldname: 'item_code',\n fieldtype: 'Data'\n },\n {\n label: __(\"Item Name\"),\n fieldname: 'item_name',\n fieldtype: 'Data'\n },\n {\n label: __(\"Delivery Date\"),\n fieldname: 'delivery_date',\n fieldtype: 'Date'\n },\n {\n fieldtype: 'Column Break'\n },\n {\n label: __(\"Customer\"),\n fieldname: 'customer',\n fieldtype: 'Data'\n },\n {\n label: __(\"Batch\"),\n fieldname: 'batch',\n fieldtype: 'Data'\n },\n {\n fieldtype: 'Section Break',\n label: __('Labels')\n },\n {\n fieldname: \"labels\",\n fieldtype: \"Table\",\n cannot_add_rows: false,\n in_place_edit: true,\n data: fields.labels,\n get_data: () => {\n return fields.labels;\n },\n fields: [{\n fieldtype: 'Int',\n fieldname: \"item_qty\",\n in_list_view: 1,\n label: __('Item Qty')\n },\n {\n label: __(\"Label Qty\"),\n fieldname: 'label_qty',\n in_list_view: 1,\n fieldtype: 'Int'\n },\n {\n fieldtype: 'Data',\n fieldname: \"information\",\n in_list_view: 1,\n label: __('Information')\n },\n ]\n },\n ],\n primary_action_label: 'Print',\n primary_action(values) {\n fields = values\n\n frappe.call({\n method: \"label_printing.api.print_label\",\n args: {\n values: fields\n },\n callback: function (r) {\n if (r.message === 200) {\n frappe.show_alert(\"Label printing successful\", 5);\n }\n },\n });\n\n d.hide();\n }\n });\n handleDataFetch();\n d.show();\n\n\n // handle dpctype change\n d.fields_dict.doctype.$input.on('change', function () {\n d.fields_dict.docname.refresh();\n });\n\n function handleDataFetch() {\n fields = d.get_values()\n if (fields.doctype && fields.docname) {\n let doc = get_doc(fields.doctype, fields.docname)\n if (fields.doctype === \"Work Order\") {\n let item = get_doc(\"Item\", doc.production_item)\n let se = 1\n frappe.call({\n method: \"label_printing.api.get_associated_stockentry\",\n async: false,\n args: { workorder: fields.docname },\n callback(r) {\n if (r.message) {\n fields.batch = r.message.items[r.message.items.length - 1].batch_no\n }\n }\n })\n fields.item_code = item.item_code\n fields.item_name = item.item_name\n fields.delivery_date = doc.expected_delivery_date\n fields.labels[0].item_qty = doc.qty\n fields.labels[0].label_qty = 1\n\n if (item.associated_company) {\n let customer = get_doc(\"Customer\", item.associated_company)\n if (customer.short_name) {\n fields.customer = customer.short_name\n } else {\n fields.customer = item.associated_company\n }\n }\n\n fields.total_amount = doc.qty\n fields.labels[0].qty_per_label = doc.qty\n d.fields_dict.labels.refresh();\n\n } else if (fields.doctype === \"Item\") {\n let item = get_doc(\"Item\", doc.item_code)\n\n fields.item_code = doc.item_code\n fields.item_name = doc.item_name\n\n if (item.associated_company) {\n let customer = get_doc(\"Customer\", doc.associated_company)\n if (customer.short_name) {\n fields.customer = customer.short_name\n } else {\n fields.customer = doc.associated_company\n }\n }\n }\n\n d.set_values(fields)\n }\n }\n\n}\n\nfunction get_doc(doctype, docname) {\n let res;\n frappe.call({\n method: \"frappe.client.get\",\n async: false,\n args: {\n doctype: doctype,\n name: docname,\n },\n callback(r) {\n if (r.message) {\n res = r.message\n }\n }\n });\n return res;\n}"],"names":["get_doc","doctype","docname","let","res","frappe","call","method","async","args","name","callback","r","message","$","document","ready","after","click","page","cur_frm","view","fields","item_code","item_name","delivery_date","customer","batch","information","total_amount","labels","item_qty","label_qty","d","ui","Dialog","title","__","label","options","fieldname","fieldtype","default","handleDataFetch","cannot_add_rows","in_place_edit","data","get_data","in_list_view","primary_action_label","primary_action","values","show_alert","hide","get_values","doc","item","production_item","workorder","items","length","batch_no","expected_delivery_date","qty","associated_company","short_name","qty_per_label","fields_dict","refresh","set_values","show","$input","on","setupLabelsDialog"],"mappings":"yBA0NA,SAASA,EAAQC,EAASC,GACxBC,IAAIC,EAcJ,OAbAC,OAAOC,KAAK,CACVC,OAAQ,oBACRC,OAAO,EACPC,KAAM,CACJR,QAASA,EACTS,KAAMR,GAERS,kBAASC,GACHA,EAAEC,UACJT,EAAMQ,EAAEC,YAIPT,EAzOTU,EAAEC,UAAUC,MAAM,WAChBF,EAAE,2BAA2BG,MAAM,2JACnCH,EAAE,mBAAmBI,MAAM,SAAUC,IAQvC,SAA2BA,GACzBhB,IAAIiB,EAAUD,EAAKE,KAAKD,QAEpBE,EAAS,CACXrB,QAAS,GACTC,QAAS,GACTqB,UAAW,GACXC,UAAW,GACXC,cAAe,GACfC,SAAU,GACVC,MAAO,GACPC,YAAa,GACbC,aAAc,EACdC,OAAQ,CAAC,CACPC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AAW1B,EAAQ,WAAYuD,EAAIS,oBACnCtC,EAASuC,WACX3C,EAAOI,SAAWA,EAASuC,WAE3B3C,EAAOI,SAAW6B,EAAIS,oBAK5B/B,EAAEoC,WAAW/C,IA7DjBqB,IACAV,EAAEqC,OAIFrC,EAAEkC,YAAYlE,QAAQsE,OAAOC,GAAG,SAAU,WACxCvC,EAAEkC,YAAYjE,QAAQkE,YA1JtBK,CAAkBtD"}
\ No newline at end of file
+{"version":3,"file":"label_printing.min.js","sources":["../../../../apps/label_printing/label_printing/public/js/label_printing_desk.js"],"sourcesContent":["$(document).ready(function () {\n $(\".dropdown-notifications\").after('');\n $(\"#labels-toolbar\").click(function (page) {\n setupLabelsDialog(page);\n });\n\n});\n\n\n\nfunction setupLabelsDialog(page) {\n let cur_frm = page.view.cur_frm\n\n let fields = {\n doctype: '',\n docname: '',\n item_code: '',\n item_name: '',\n delivery_date: '',\n customer: '',\n batch: '',\n information: '',\n total_amount: 0,\n labels: [{\n item_qty: 0,\n label_qty: 0,\n information: ''\n }]\n };\n\n\n if (cur_frm !== null) {\n if (cur_frm.doctype === \"Work Order\" || cur_frm.doctype === \"Item\") {\n if (cur_frm.docname) {\n fields.doctype = cur_frm.doctype\n fields.docname = cur_frm.docname\n }\n }\n }\n\n let d = new frappe.ui.Dialog({\n title: __(\"Print Labels\"),\n fields: [{\n label: __(\"Reference Doctype\"),\n options: ['Work Order', 'Item', 'Label'],\n fieldname: 'doctype',\n fieldtype: 'Select',\n default: fields.doctype,\n },\n {\n label: __(\"Get data\"),\n fieldname: 'get_data',\n fieldtype: 'Button',\n click: () => {\n handleDataFetch()\n }\n },\n {\n fieldtype: 'Column Break'\n },\n {\n label: __(\"Reference Docname\"),\n fieldname: 'docname',\n fieldtype: 'Data',\n options: 'doctype',\n default: fields.docname,\n },\n {\n fieldtype: 'Section Break',\n label: __('Information')\n },\n {\n label: __(\"Item Code\"),\n fieldname: 'item_code',\n fieldtype: 'Data'\n },\n {\n label: __(\"Item Name\"),\n fieldname: 'item_name',\n fieldtype: 'Data'\n },\n {\n label: __(\"Delivery Date\"),\n fieldname: 'delivery_date',\n fieldtype: 'Date'\n },\n {\n fieldtype: 'Column Break'\n },\n {\n label: __(\"Customer\"),\n fieldname: 'customer',\n fieldtype: 'Data'\n },\n {\n label: __(\"Batch\"),\n fieldname: 'batch',\n fieldtype: 'Data'\n },\n {\n fieldtype: 'Section Break',\n label: __('Labels')\n },\n {\n fieldname: \"labels\",\n fieldtype: \"Table\",\n cannot_add_rows: false,\n in_place_edit: true,\n data: fields.labels,\n get_data: () => {\n return fields.labels;\n },\n fields: [{\n fieldtype: 'Int',\n fieldname: \"item_qty\",\n in_list_view: 1,\n label: __('Item Qty')\n },\n {\n label: __(\"Label Qty\"),\n fieldname: 'label_qty',\n in_list_view: 1,\n fieldtype: 'Int'\n },\n {\n fieldtype: 'Data',\n fieldname: \"information\",\n in_list_view: 1,\n label: __('Information')\n },\n ]\n },\n ],\n primary_action_label: 'Print',\n primary_action(values) {\n fields = values\n\n frappe.call({\n method: \"label_printing.api.print_label\",\n args: {\n values: fields\n },\n callback: function (r) {\n if (r.message === 200) {\n frappe.show_alert(\"Label printing successful\", 5);\n }\n },\n });\n\n d.hide();\n }\n });\n handleDataFetch();\n d.show();\n\n\n // handle dpctype change\n d.fields_dict.doctype.$input.on('change', function () {\n d.fields_dict.docname.refresh();\n });\n\n function handleDataFetch() {\n fields = d.get_values()\n if (fields.doctype && fields.docname) {\n let doc = get_doc(fields.doctype, fields.docname)\n if (fields.doctype === \"Work Order\") {\n let item = get_doc(\"Item\", doc.production_item)\n let se = 1\n frappe.call({\n method: \"label_printing.api.get_associated_stockentry\",\n async: false,\n args: { workorder: fields.docname },\n callback(r) {\n if (r.message) {\n fields.batch = r.message.items[r.message.items.length - 1].batch_no\n }\n }\n })\n fields.item_code = item.item_code\n fields.item_name = item.item_name\n fields.delivery_date = doc.expected_delivery_date\n fields.labels[0].item_qty = doc.qty\n fields.labels[0].label_qty = 1\n\n if (item.associated_company) {\n let customer = get_doc(\"Customer\", item.associated_company)\n if (customer.short_name) {\n fields.customer = customer.short_name\n } else {\n fields.customer = item.associated_company\n }\n }\n\n fields.total_amount = doc.qty\n fields.labels[0].qty_per_label = doc.qty\n d.fields_dict.labels.refresh();\n\n } else if (fields.doctype === \"Item\") {\n let item = get_doc(\"Item\", doc.item_code)\n\n fields.item_code = doc.item_code\n fields.item_name = doc.item_name\n\n if (item.associated_company) {\n let customer = get_doc(\"Customer\", doc.associated_company)\n if (customer.short_name) {\n fields.customer = customer.short_name\n } else {\n fields.customer = doc.associated_company\n }\n }\n }\n d.set_values(fields)\n }\n }\n\n}\n\nfunction get_doc(doctype, docname) {\n let res;\n frappe.call({\n method: \"frappe.client.get\",\n async: false,\n args: {\n doctype: doctype,\n name: docname,\n },\n callback(r) {\n if (r.message) {\n res = r.message\n }\n }\n });\n return res;\n}"],"names":["get_doc","doctype","docname","let","res","frappe","call","method","async","args","name","callback","r","message","$","document","ready","after","click","page","cur_frm","view","fields","item_code","item_name","delivery_date","customer","batch","information","total_amount","labels","item_qty","label_qty","d","ui","Dialog","title","__","label","options","fieldname","fieldtype","default","handleDataFetch","cannot_add_rows","in_place_edit","data","get_data","in_list_view","primary_action_label","primary_action","values","show_alert","hide","get_values","doc","item","production_item","workorder","items","length","batch_no","expected_delivery_date","qty","associated_company","short_name","qty_per_label","fields_dict","refresh","set_values","show","$input","on","setupLabelsDialog"],"mappings":"yBA0NA,SAASA,EAAQC,EAASC,GACxBC,IAAIC,EAcJ,OAbAC,OAAOC,KAAK,CACVC,OAAQ,oBACRC,OAAO,EACPC,KAAM,CACJR,QAASA,EACTS,KAAMR,GAERS,kBAASC,GACHA,EAAEC,UACJT,EAAMQ,EAAEC,YAIPT,EAzOTU,EAAEC,UAAUC,MAAM,WAChBF,EAAE,2BAA2BG,MAAM,2JACnCH,EAAE,mBAAmBI,MAAM,SAAUC,IAQvC,SAA2BA,GACzBhB,IAAIiB,EAAUD,EAAKE,KAAKD,QA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B,CACpCE,IAAIqD,EAAOxD,EAAQ,OAAQuD,EAAIhC,WAK/B,GAHAD,EAAOC,UAAYgC,EAAIhC,UACvBD,EAAOE,UAAY+B,EAAI/B,UAEnBgC,EAAKQ,mBAAoB,CAC3B7D,IAAIuB,EAAW1B,EAAQ,WAAYuD,EAAIS,oBACnCtC,EAASuC,WACX3C,EAAOI,SAAWA,EAASuC,WAE3B3C,EAAOI,SAAW6B,EAAIS,oBAI5B/B,EAAEoC,WAAW/C,IA5DjBqB,IACAV,EAAEqC,OAIFrC,EAAEkC,YAAYlE,QAAQsE,OAAOC,GAAG,SAAU,WACxCvC,EAAEkC,YAAYjE,QAAQkE,YA3JtBK,CAAkBtD"}
\ No newline at end of file
diff --git a/label_printing/public/js/label_printing_desk.js b/label_printing/public/js/label_printing_desk.js
index 52d88c4..4e2e144 100644
--- a/label_printing/public/js/label_printing_desk.js
+++ b/label_printing/public/js/label_printing_desk.js
@@ -23,7 +23,8 @@ function setupLabelsDialog(page) {
total_amount: 0,
labels: [{
item_qty: 0,
- label_qty: 0,
+ label_qty: 1,
+ information: ''
}]
};