FIX_Date
This commit is contained in:
parent
7bf4e6488c
commit
13c7cfca13
@ -606,10 +606,10 @@
|
||||
var dcd2 = (String(dcd.getDate()).padStart(2, '0') + '-' + (String(dcd.getMonth() + 1).padStart(2, '0')) + '-' + dcd.getFullYear());
|
||||
$("#Invoice_Date").val(dcd2);
|
||||
console.log(item.MaterialRcvdDate)
|
||||
var Mat_rcv_date = (item.MaterialRcvdDate === null) ? ' ' : formatDateTime(item.MaterialRcvdDate,1);
|
||||
var Mat_rcv_date = (item.MaterialRcvdDate == 'null') ? ' ' : formatDateTime(item.MaterialRcvdDate,1);
|
||||
$("#MaterialRcvdDate").val(Mat_rcv_date);
|
||||
console.log(item.MaterialRcvdDate)
|
||||
var gross_rcv_date = (item.GrossWeightDate === null) ? ' ' : formatDateTime(item.GrossWeightDate,2);
|
||||
var gross_rcv_date = (item.GrossWeightDate == 'null') ? ' ' : formatDateTime(item.GrossWeightDate,2);
|
||||
$("#ser").val(item.ServiceDescription);
|
||||
|
||||
i = i + 1;
|
||||
@ -1112,6 +1112,7 @@ function deleteBill(Billno,i){
|
||||
}
|
||||
$("#WeightCalculator").on("shown.bs.modal", function(e) {
|
||||
var inx = $(e.relatedTarget).data('index');
|
||||
console.log(inx);
|
||||
var material = $(e.relatedTarget).data('material');
|
||||
var modal = $(this);
|
||||
|
||||
@ -1260,7 +1261,7 @@ function deleteBill(Billno,i){
|
||||
// Note 1 means DATE only
|
||||
// 2 means DATE and Time
|
||||
// Check if the date string is null or empty
|
||||
if (!dateString || dateString === null || dateString === '0000-00-00 00:00:00') {
|
||||
if (!dateString || dateString == 'null' || dateString === '0000-00-00 00:00:00') {
|
||||
return '';
|
||||
} else {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user