I have "Proof Of Delivery Date(PoD) " field in Delivery Note and PoD update after making delivery note. When I select get item from delivery note and if Proof of delivery date(PoD) is less than Invoice Date and not billed then it Should appear in sales invoice.
If PoD has not been received then it should not insert row in to Sales Invoice Item.
Delivery Note #: DN-00001
Delivery Note Date: 01-FEB-2016
PoD Date: 10-FEB-2016 (It has been updated after making Delivery Note)
if (frm.doc.pod_date > frm.doc.posting_date) {
msgprint(“PoD Date Can Not Be Greater Than Invoice Date”);
validated = false;
}
if (frm.doc.pod_date==“”){
msgprint(“PoD To Be Received”);
validated = false;
}
});