Skip to content

Commit 4de738c

Browse files
authored
Merge pull request #164 from Acumatica/feature/EDU-8355-2025R2-T250-Course-Update-Publish-GitHub
EDU-8355: Updated customization project and snippets.
2 parents fa60b29 + fe53aa1 commit 4de738c

79 files changed

Lines changed: 2448 additions & 2382 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Customization/T210/PhoneRepairShop/Pages/RS/RS203000.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
55
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%"
6-
TypeName="PhoneRepairShop.RSSVTest"
6+
TypeName="PhoneRepairShop.RSSVRepairPriceMaint"
77
PrimaryView="MasterView"
88
>
99
<CallbackCommands>

Customization/T220/PhoneRepairShop/Pages/RS/RS203000.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
55
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%"
6-
TypeName="PhoneRepairShop.RSSVTest"
6+
TypeName="PhoneRepairShop.RSSVRepairPriceMaint"
77
PrimaryView="MasterView"
88
>
99
<CallbackCommands>

Customization/T230/PhoneRepairShop/Pages/RS/RS203000.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
55
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%"
6-
TypeName="PhoneRepairShop.RSSVTest"
6+
TypeName="PhoneRepairShop.RSSVRepairPriceMaint"
77
PrimaryView="MasterView"
88
>
99
<CallbackCommands>

Customization/T240/PhoneRepairShop/Pages/RS/RS203000.aspx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<asp:Content ID="cont1" ContentPlaceHolderID="phDS" Runat="Server">
55
<px:PXDataSource ID="ds" runat="server" Visible="True" Width="100%"
6-
TypeName="PhoneRepairShop.RSSVTest"
6+
TypeName="PhoneRepairShop.RSSVRepairPriceMaint"
77
PrimaryView="MasterView"
88
>
99
<CallbackCommands>

Customization/T250/CodeSnippets/Activity1.1.1/Step3/RSSVPaymentPlanInq.cs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace PhoneRepairShop
1111
public class RSSVPaymentPlanInq : PXGraph<RSSVPaymentPlanInq>
1212
{
1313
public PXFilter<MasterTable> MasterView;
14-
public PXFilter<DetailsTable> DetailsView = null!;
14+
public PXFilter<DetailsTable> DetailsView;
1515

1616
[Serializable]
1717
public class MasterTable : PXBqlTable, IBqlTable
@@ -28,21 +28,19 @@ public class DetailsTable : PXBqlTable, IBqlTable
2828
////////// The added code
2929
protected virtual void _(Events.RowSelecting<RSSVWorkOrderToPay> e)
3030
{
31-
using (new PXConnectionScope())
32-
{
33-
if (e.Row == null) return;
34-
if (e.Row.OrderTotal == 0) return;
35-
RSSVWorkOrderToPay order = e.Row;
36-
var invoices =
37-
SelectFrom<ARInvoice>.
38-
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.
39-
View.Select(this, order.InvoiceNbr);
40-
if (invoices.Count == 0)
41-
return;
42-
ARInvoice first = invoices[0];
43-
e.Row.PercentPaid = (order.OrderTotal - first.CuryDocBal) /
44-
order.OrderTotal * 100;
45-
}
31+
if (e.Row == null) return;
32+
if (e.Row.OrderTotal == 0) return;
33+
RSSVWorkOrderToPay order = e.Row;
34+
// Acuminator disable once PX1042 DatabaseQueriesInRowSelecting [Justification]
35+
var invoices =
36+
SelectFrom<ARInvoice>.
37+
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.
38+
View.Select(this, order.InvoiceNbr);
39+
if (invoices.Count == 0)
40+
return;
41+
ARInvoice first = invoices[0];
42+
e.Row.PercentPaid = (order.OrderTotal - first.CuryDocBal) /
43+
order.OrderTotal * 100;
4644
}
4745
////////// The end of added code
4846
}

Customization/T250/CodeSnippets/Activity1.1.1/Step4/RSSVPaymentPlanInq.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ public class RSSVPaymentPlanInq : PXGraph<RSSVPaymentPlanInq>
1010
{
1111
////////// The added code
1212
[PXFilterable]
13-
public SelectFrom<RSSVWorkOrderToPay>.
14-
InnerJoin<ARInvoice>.On<ARInvoice.refNbr.
13+
public
14+
SelectFrom<RSSVWorkOrderToPay>.
15+
InnerJoin<ARInvoice>.On<ARInvoice.refNbr.
1516
IsEqual<RSSVWorkOrderToPay.invoiceNbr>>.
1617
Where<RSSVWorkOrderToPay.status.
1718
IsNotEqual<RSSVWorkOrderEntry_Workflow.States.paid>>.
@@ -25,6 +26,7 @@ protected virtual void _(Events.RowSelecting<RSSVWorkOrderToPay> e)
2526
if (e.Row == null) return;
2627
if (e.Row.OrderTotal == 0) return;
2728
RSSVWorkOrderToPay order = e.Row;
29+
// Acuminator disable once PX1042 DatabaseQueriesInRowSelecting [Justification]
2830
var invoices =
2931
SelectFrom<ARInvoice>.
3032
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.

Customization/T250/CodeSnippets/Activity1.2.1/Step1/RSSVPaymentPlanInq.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ protected virtual void _(Events.RowSelecting<RSSVWorkOrderToPay> e)
2323
if (e.Row == null) return;
2424
if (e.Row.OrderTotal == 0) return;
2525
RSSVWorkOrderToPay order = e.Row;
26+
// Acuminator disable once PX1042 DatabaseQueriesInRowSelecting [Justification]
2627
var invoices =
2728
SelectFrom<ARInvoice>.
2829
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.

Customization/T250/CodeSnippets/Activity1.2.1/Step2/RSSVPaymentPlanInq.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ protected virtual void _(Events.RowSelecting<RSSVWorkOrderToPay> e)
3939
if (e.Row == null) return;
4040
if (e.Row.OrderTotal == 0) return;
4141
RSSVWorkOrderToPay order = e.Row;
42+
// Acuminator disable once PX1042 DatabaseQueriesInRowSelecting [Justification]
4243
var invoices =
4344
SelectFrom<ARInvoice>.
4445
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.

Customization/T250/CodeSnippets/Activity1.3.1/Step2/RSSVPaymentPlanInq.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ protected virtual void _(Events.RowSelecting<RSSVWorkOrderToPay> e)
9595
if (e.Row == null) return;
9696
if (e.Row.OrderTotal == 0) return;
9797
RSSVWorkOrderToPay order = e.Row;
98+
// Acuminator disable once PX1042 DatabaseQueriesInRowSelecting [Justification]
9899
var invoices =
99100
SelectFrom<ARInvoice>.
100101
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.

Customization/T250/CodeSnippets/Activity1.4.1/Step1/RSSVPaymentPlanInq.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ protected virtual void _(Events.RowSelecting<RSSVWorkOrderToPay> e)
7878
if (e.Row == null) return;
7979
if (e.Row.OrderTotal == 0) return;
8080
RSSVWorkOrderToPay order = e.Row;
81+
// Acuminator disable once PX1042 DatabaseQueriesInRowSelecting [Justification]
8182
var invoices =
8283
SelectFrom<ARInvoice>.
8384
Where<ARInvoice.refNbr.IsEqual<@P.AsString>>.

0 commit comments

Comments
 (0)