Commit 122506f1 by Elias Sarraf

Merge remote-tracking branch 'origin/cam'

parents 34c1f5e2 83b51b07
...@@ -200,6 +200,7 @@ object FOrderEntryCorrugated: TFOrderEntryCorrugated ...@@ -200,6 +200,7 @@ object FOrderEntryCorrugated: TFOrderEntryCorrugated
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
HideSelection = False HideSelection = False
WidthPercent = 100.000000000000000000 WidthPercent = 100.000000000000000000
OnExit = edtPriceExit
DataField = 'staff_fields_price' DataField = 'staff_fields_price'
DataSource = wdsOrder DataSource = wdsOrder
end end
......
...@@ -385,8 +385,8 @@ ...@@ -385,8 +385,8 @@
<hr class="custom-hr"> <hr class="custom-hr">
<div class="row pb-3"> <div class="row pb-3">
<div class="col-auto"> <div class="col-auto">
<label for="wdbe_first_name" style="font-weight: 700; font-size: 15px;" class="form-label">Special Instructions</label> <label for="wdbe_first_name" style="font-weight: 700; font-size: 15px;" class="form-label">Special Instructions (Max Length 2048 characters)</label>
<textarea id="edtspecialinstructions" class="form-control mb-3" style=" width: 800px; height: 150px;"></textarea> <textarea id="edtspecialinstructions" class="form-control mb-3" style=" width: 1100px; height: 150px;" maxlength="2048"></textarea>
</div> </div>
</div> </div>
</div> </div>
...@@ -232,6 +232,7 @@ type ...@@ -232,6 +232,7 @@ type
procedure wdbcbQuickbooksItemChange(Sender: TObject); procedure wdbcbQuickbooksItemChange(Sender: TObject);
procedure btnQBClick(Sender: TObject); procedure btnQBClick(Sender: TObject);
function VerifyQBOrder: Boolean; function VerifyQBOrder: Boolean;
procedure edtPriceExit(Sender: TObject);
private private
FAgencyCode: string; FAgencyCode: string;
FCurrentReportType: string; FCurrentReportType: string;
...@@ -952,6 +953,18 @@ begin ...@@ -952,6 +953,18 @@ begin
' - ' + xdwdsOrder.FieldByName('staff_fields_job_name').AsString; ' - ' + xdwdsOrder.FieldByName('staff_fields_job_name').AsString;
end; end;
procedure TFOrderEntryCorrugated.edtPriceExit(Sender: TObject);
var
v: Double;
begin
if TryStrToFloat(edtPrice.Text, v) then
begin
xdwdsOrderstaff_fields_price.AsFloat := v;
xdwdsOrderstaff_fields_price.AsString := FormatFloat('0.00', v);
edtPrice.Text := FormatFloat('0.00', v)
end;
end;
procedure TFOrderEntryCorrugated.ViewMode; procedure TFOrderEntryCorrugated.ViewMode;
begin begin
btnPDF.Enabled := true; btnPDF.Enabled := true;
...@@ -1145,7 +1158,7 @@ begin ...@@ -1145,7 +1158,7 @@ begin
input.classList.remove('is-invalid'); input.classList.remove('is-invalid');
input := TJSHTMLInputElement(document.getElementById('edtprice')); input := TJSHTMLInputElement(document.getElementById('edtprice'));
if ( ( edtPrice.Text = '' ) or ( StrToFloat(edtPrice.Text) <= 0 ) )then if ( ( edtPrice.Text = '' ) or ( StrToFloat(edtPrice.Text) < 0 ) )then
begin begin
input.classList.add('is-invalid'); input.classList.add('is-invalid');
......
...@@ -105,6 +105,7 @@ object FOrderEntryCuttingDie: TFOrderEntryCuttingDie ...@@ -105,6 +105,7 @@ object FOrderEntryCuttingDie: TFOrderEntryCuttingDie
ElementID = 'edtprice' ElementID = 'edtprice'
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
WidthPercent = 100.000000000000000000 WidthPercent = 100.000000000000000000
OnExit = edtPriceExit
DataField = 'staff_fields_price' DataField = 'staff_fields_price'
DataSource = wdsOrder DataSource = wdsOrder
end end
......
...@@ -158,8 +158,8 @@ ...@@ -158,8 +158,8 @@
<hr class="custom-hr"> <hr class="custom-hr">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-auto">
<label for="wdbe_first_name" style="font-weight: 700; font-size: 15px;" class="form-label">Special Instructions</label> <label for="wdbe_first_name" style="font-weight: 700; font-size: 15px;" class="form-label">Special Instructions (Max Length 2048 characters)</label>
<textarea id="edtspecialinstructions" class="form-control mb-3" style=" width: 800px; height: 150px;"></textarea> <textarea id="edtspecialinstructions" class="form-control mb-3" style=" width: 1100px; height: 150px;" maxlength="2048"></textarea>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -105,6 +105,7 @@ type ...@@ -105,6 +105,7 @@ type
function VerifyQBOrder(): boolean; function VerifyQBOrder(): boolean;
procedure wcbQBItemChange(Sender: TObject); procedure wcbQBItemChange(Sender: TObject);
procedure edtJobNameExit(Sender: TObject); procedure edtJobNameExit(Sender: TObject);
procedure edtPriceExit(Sender: TObject);
private private
FAgencyCode: string; FAgencyCode: string;
FCurrentReportType: string; FCurrentReportType: string;
...@@ -648,6 +649,18 @@ begin ...@@ -648,6 +649,18 @@ begin
' - ' + xdwdsOrder.FieldByName('staff_fields_job_name').AsString; ' - ' + xdwdsOrder.FieldByName('staff_fields_job_name').AsString;
end; end;
procedure TFOrderEntryCuttingDie.edtPriceExit(Sender: TObject);
var
v: Double;
begin
if TryStrToFloat(edtPrice.Text, v) then
begin
xdwdsOrderstaff_fields_price.AsFloat := v;
xdwdsOrderstaff_fields_price.AsString := FormatFloat('0.00', v);
edtPrice.Text := FormatFloat('0.00', v)
end;
end;
procedure TFOrderEntryCuttingDie.ViewMode; procedure TFOrderEntryCuttingDie.ViewMode;
begin begin
btnPDF.Enabled := true; btnPDF.Enabled := true;
...@@ -738,7 +751,7 @@ begin ...@@ -738,7 +751,7 @@ begin
input.classList.remove('is-invalid'); input.classList.remove('is-invalid');
input := TJSHTMLInputElement(document.getElementById('edtprice')); input := TJSHTMLInputElement(document.getElementById('edtprice'));
if edtPrice.Text = '' then if ( ( edtPrice.Text = '' ) or ( StrToFloat(edtPrice.Text) < 0 ) )then
begin begin
input.classList.add('is-invalid'); input.classList.add('is-invalid');
...@@ -748,7 +761,7 @@ begin ...@@ -748,7 +761,7 @@ begin
input.classList.remove('is-invalid'); input.classList.remove('is-invalid');
input := TJSHTMLInputElement(document.getElementById('edtquantity')); input := TJSHTMLInputElement(document.getElementById('edtquantity'));
if edtQuantity.Text = '' then if ( ( edtQuantity.Text = '' ) or ( StrToFloat(edtQuantity.Text) <= 0 ) ) then
begin begin
input.classList.add('is-invalid'); input.classList.add('is-invalid');
......
...@@ -194,6 +194,7 @@ object FOrderEntryWeb: TFOrderEntryWeb ...@@ -194,6 +194,7 @@ object FOrderEntryWeb: TFOrderEntryWeb
HeightPercent = 100.000000000000000000 HeightPercent = 100.000000000000000000
ShowFocus = False ShowFocus = False
WidthPercent = 100.000000000000000000 WidthPercent = 100.000000000000000000
OnExit = edtPriceExit
DataField = 'staff_fields_price' DataField = 'staff_fields_price'
DataSource = wdsOrder DataSource = wdsOrder
end end
......
...@@ -449,8 +449,8 @@ ...@@ -449,8 +449,8 @@
<hr class="custom-hr"> <hr class="custom-hr">
<div class="row"> <div class="row">
<div class="col-auto"> <div class="col-auto">
<label style="font-weight: 700; font-size: 15px;" class="form-label">Comments</label> <label for="wdbe_first_name" style="font-weight: 700; font-size: 15px;" class="form-label">Special Instructions (Max Length 2048 characters)</label>
<textarea id="edtcomments" class="form-control mb-3" style=" width: 800px; height: 150px;"></textarea> <textarea id="edtcomments" class="form-control mb-3" style=" width: 1100px; height: 150px;" maxlength="2048"></textarea>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -239,6 +239,7 @@ type ...@@ -239,6 +239,7 @@ type
procedure btnQBClick(Sender: TObject); procedure btnQBClick(Sender: TObject);
function VerifyQBOrder: Boolean; function VerifyQBOrder: Boolean;
[async] procedure AddEstimate(orderID: string); [async] procedure AddEstimate(orderID: string);
procedure edtPriceExit(Sender: TObject);
private private
FModalAction: string; FModalAction: string;
FAgencyCode: string; FAgencyCode: string;
...@@ -902,6 +903,18 @@ begin ...@@ -902,6 +903,18 @@ begin
' - ' + xdwdsOrder.FieldByName('staff_fields_job_name').AsString; ' - ' + xdwdsOrder.FieldByName('staff_fields_job_name').AsString;
end; end;
procedure TFOrderEntryWeb.edtPriceExit(Sender: TObject);
var
v: Double;
begin
if TryStrToFloat(edtPrice.Text, v) then
begin
xdwdsOrderstaff_fields_price.AsFloat := v;
xdwdsOrderstaff_fields_price.AsString := FormatFloat('0.00', v);
edtPrice.Text := FormatFloat('0.00', v)
end;
end;
procedure TFOrderEntryWeb.ViewMode; procedure TFOrderEntryWeb.ViewMode;
begin begin
btnPDF.Enabled := true; btnPDF.Enabled := true;
...@@ -995,7 +1008,7 @@ begin ...@@ -995,7 +1008,7 @@ begin
input.classList.remove('is-invalid'); input.classList.remove('is-invalid');
input := TJSHTMLInputElement(document.getElementById('edtprice')); input := TJSHTMLInputElement(document.getElementById('edtprice'));
if edtPrice.Text = '' then if ( ( edtPrice.Text = '' ) or ( StrToFloat(edtPrice.Text) < 0 ) )then
begin begin
input.classList.add('is-invalid'); input.classList.add('is-invalid');
...@@ -1005,7 +1018,7 @@ begin ...@@ -1005,7 +1018,7 @@ begin
input.classList.remove('is-invalid'); input.classList.remove('is-invalid');
input := TJSHTMLInputElement(document.getElementById('edtquantity')); input := TJSHTMLInputElement(document.getElementById('edtquantity'));
if edtQuantity.Text = '' then if ( ( edtQuantity.Text = '' ) or ( StrToFloat(edtQuantity.Text) <= 0 ) ) then
begin begin
input.classList.add('is-invalid'); input.classList.add('is-invalid');
......
...@@ -18,6 +18,18 @@ input[type="text"] { ...@@ -18,6 +18,18 @@ input[type="text"] {
padding-left: 5px; padding-left: 5px;
} }
/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type=number] {
-moz-appearance: textfield;
}
is-invalid .form-check-input { is-invalid .form-check-input {
border: 1px solid #dc3545 !important; border: 1px solid #dc3545 !important;
} }
......
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
MemoLogLevel=5 MemoLogLevel=5
FileLogLevel=5 FileLogLevel=5
webClientVersion=0.9.12 webClientVersion=0.9.12
LogFileNum=106 LogFileNum=110
[Database] [Database]
Server=192.168.116.132 --Server=192.168.116.132
--Server=192.168.102.129 --Server=192.168.102.129
--Server=192.168.75.133 --Server=192.168.75.133
--Server=192.168.159.10 Server=192.168.159.10
--Database=kg_order_entry --Database=kg_order_entry
--Username=root --Username=root
--Password=emsys01 --Password=emsys01
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment