This file contains hidden or 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
| ALTER PROCEDURE [dbo].[GetPOBasicParentDataByParamsForAdvanceBill_SP] | |
| @FromDate date, | |
| @ToDate date, | |
| @POId int = 2011, | |
| @SupplierId int=0, | |
| @CompanyId int=0, | |
| @userId int = 3 | |
| AS | |
| ;WITH AlreadyBilledAmount AS ( |
This file contains hidden or 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
| -- Tracking any update or delete on item table | |
| ALTER TRIGGER [dbo].[TRG_ITEM_History] | |
| ON [dbo].[Item] | |
| AFTER UPDATE, DELETE | |
| AS | |
| BEGIN | |
| SET NOCOUNT ON; | |
| -- ========================== |
This file contains hidden or 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
| Link: https://www.chartjs.org/docs/latest/charts/bar.html | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>CM-wise Qty & Value Bar Chart</title> | |
| <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/chartjs-plugin-datalabels"></script> | |
| <style> | |
| body { |
This file contains hidden or 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
| function BindGrid(response) { | |
| if (!response || response.length === 0) return; | |
| var knownStaticKeys = [ | |
| "store", "brand", "category", "subCategory", "subSubCategory", "collection", | |
| "type", "productName", "productId", "styleCode", "colour", "totalSale", "mrp", | |
| "discount", "vat", "totalValue", "paymentType", "salesmanName" | |
| ]; | |
| // Get all keys from first item |
This file contains hidden or 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
| var BindreportDataToHTML = function () { | |
| ReceiveSummary = _.chain(ReceiveSummary) | |
| .sortBy('companyID') | |
| .sortBy('purchaseIndentID') | |
| .sortBy('itemID') | |
| .value(); | |
| var html = ''; |
This file contains hidden or 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
| SET NOCOUNT ON; | |
| --It's often used at the beginning of stored procedures and triggers. | |
| --Benefits of SET NOCOUNT ON | |
| --1.Reduces network traffic: | |
| --2.Reduces processing | |
| --Example: | |
| ALTER PROCEDURE [dbo].[CheckUserMenuPermission] | |
| @UserId INT, |
This file contains hidden or 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
| // ~~~~~ jQuery.map( object, callback ) | |
| //The function to process each item against. The first argument to the function is the array item, | |
| //the second argument is the index in array the function can return any value. A returned array will be flattened into the resulting array. | |
| o.LCItemList = ItemDetails.map(item => { | |
| return { | |
| childID: item.childID, | |
| itemID: item.itemID, | |
| quantity: item.quantity, |
This file contains hidden or 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
| 1. change SP as per requirment | |
| 2. Field Explorer >> Right click on "Database fields" >> Select "Verify Database" | |
| 3. provide database connection, password & click "Finish" [database will be uptodate] | |
| 4. expand "Database fields">> command>> get your new column here |
This file contains hidden or 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
| Convert.ToDouble("1234567.12345").ToString("N") | |
| //If you want to control the decimal places you can do something like: | |
| Convert.ToDouble("1234567.12345").ToString("N3") // 3decimal point | |
| Convert.ToDouble("1234567.12345").ToString("N0") // int | |
| or | |
| (Int32.Parse("78956258")).ToString("N0") |
NewerOlder