Subversion Repositories SmartDukaan

Rev

Rev 37704 | Rev 37711 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 37704 Rev 37707
Line 780... Line 780...
780
                    }
780
                    }
781
                });
781
                });
782
 
782
 
783
            }
783
            }
784
        } else if (mismatch == "PoMismatch") {
784
        } else if (mismatch == "PoMismatch") {
-
 
785
            // Say what the replacement PO is for and what to do if it closes before the stock lands, rather than
-
 
786
            // leaving someone to discover that a GRN has quietly stopped matching.
785
            if (confirm("Are you sure you want to resolve Po Mismatch. Discard the current PoLineItem new Po will generate on the invoice date.") == true) {
787
            if (confirm("Resolve this price mismatch?\n\nThe current PO line is discarded and a replacement "
-
 
788
                    + "purchase order is raised on the invoice date at the corrected price. This invoice is then "
-
 
789
                    + "received against that PO.\n\nIt closes automatically after 4 days for a warehouse movement, "
-
 
790
                    + "6 for a vendor order. A movement that closes before its stock arrives can be reopened from "
-
 
791
                    + "Purchase Orders; a vendor order cannot, and needs a fresh PO.") == true) {
786
 
792
 
787
                doGetAjaxRequestHandler(context + "/resolvedMismatchRequest?id=" + id, function (response) {
793
                doGetAjaxRequestHandler(context + "/resolvedMismatchRequest?id=" + id, function (response) {
788
                    if (response == 'true') {
794
                    if (response == 'true') {
789
                        getGrnRequestItems(requestId, invoiceId)
795
                        getGrnRequestItems(requestId, invoiceId)
790
                    }
796
                    }