This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
frappe.ui.form.on('Sevkiyat', { | |
refresh: function(frm) { | |
frm.add_custom_button('Çeki Listesi Oluştur', async function() { | |
let columns = ["Batch", "Item Code", "Roll ID", "Customer", "Sales Order", "Net Weight [Kg]", "Gross Weight [Kg]", "Meter [cm]", "Width [cm]", "Diameter [cm]"]; | |
let data = []; | |
for(let dItemIndex = 0; dItemIndex < frm.doc.shipment_detail.length; dItemIndex++) { | |
let docBatch = await frappe.db.get_doc("Batch", frm.doc.shipment_detail[dItemIndex].batch); | |
console.log(docBatch.reference_name); | |
let docWO = await frappe.db.get_value("Stock Entry", docBatch.reference_name, "work_order"); |
OlderNewer