Hello Team, I want to print after sales receipt and below is my angularJS controller query, any idear please
}
Hello Team, I want to print after sales receipt and below is my angularJS controller query, any idear please
}
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Vishal JoshiRank #377 · 6.7K reputationPosted Mar 1, 2024, 10:14 AM EST
Hello Emmanuel,
Please try the below code to get it to work.
$scope.PrintInvoice = function(){ var orderNo = $("#OrderNo").val(); var url = window.location.href; var arr = url.split("/"); var result = arr[0] + "//" + arr[2] window.location = result +"/Home/" + "Receipt?OrderNo=" + orderNo; }Thanks
Vishal Joshi
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Mar 1, 2024, 9:29 AM EST
function GetAllSales() {
$http.get('/Home/GetAllSales')
.then(function (response) {
var data = response.data;
$scope.SalesList = data;
});
Emmmanuel FIADUFERank #947 · 2.2K reputationPosted Mar 1, 2024, 11:13 AM EST
It is working, thank you Vishal