Skip to content

Commit 4c490fb

Browse files
authored
Merge pull request #161 from Acumatica/feature/EDU-8365-2025R2-T270-Course-Update-Publish-GitHub
EDU-8365: Updated customization project files for T270
2 parents 0663798 + 6ad77c9 commit 4c490fb

55 files changed

Lines changed: 2134 additions & 1268 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.

WorkflowDevelopment/T270/PhoneRepairShop_Code/PhoneRepairShop_Code/DAC/ARPaymentExtension.cs renamed to WorkflowDevelopment/T270/CodeSnippets/Activity2.2.1/Step1/ARRegisterExtensions.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
1-
using PX.Data;
2-
using PX.Objects.AR;
3-
using System;
4-
5-
namespace PhoneRepairShop
6-
{
7-
// Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod
8-
// extension should be constantly active
9-
public sealed class ARPaymentExt : PXCacheExtension<ARPayment>
10-
{
11-
#region UsrPrepaymentPercent
12-
[PXDBDecimal()]
13-
[PXDefault(TypeCode.Decimal, "0.0",
14-
PersistingCheck = PXPersistingCheck.Nothing)]
15-
[PXUIField(DisplayName = "Prepayment Percent")]
16-
public Decimal? UsrPrepaymentPercent { get; set; }
17-
public abstract class usrPrepaymentPercent :
18-
PX.Data.BQL.BqlDecimal.Field<usrPrepaymentPercent>
19-
{ }
20-
#endregion
21-
}
1+
using PX.Data;
2+
using PX.Objects.AR;
3+
using System;
4+
5+
namespace PhoneRepairShop
6+
{
7+
// Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod extension
8+
// should be constantly active
9+
public sealed class ARRegisterExt : PXCacheExtension<ARRegister>
10+
{
11+
#region UsrPrepaymentPercent
12+
[PXDBDecimal()]
13+
[PXDefault(TypeCode.Decimal, "0.0",
14+
PersistingCheck = PXPersistingCheck.Nothing)]
15+
[PXUIField(DisplayName = "Prepayment Percent")]
16+
public Decimal? UsrPrepaymentPercent { get; set; }
17+
public abstract class usrPrepaymentPercent :
18+
PX.Data.BQL.BqlDecimal.Field<usrPrepaymentPercent>
19+
{ }
20+
#endregion
21+
}
2222
}

WorkflowDevelopment/T270/CodeSnippets/Activity2.2.1/Step2/ARPaymentEntry_Extension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace PhoneRepairShop
99
public class ARPaymentEntry_Extension : PXGraphExtension<ARPaymentEntry>
1010
{
1111
public virtual void _(Events.FieldDefaulting<ARPayment,
12-
ARPaymentExt.usrPrepaymentPercent> e)
12+
ARRegisterExt.usrPrepaymentPercent> e)
1313
{
1414
RSSVSetup setupRecord = SelectFrom<RSSVSetup>.View.Select(Base);
1515
if (setupRecord != null)

WorkflowDevelopment/T270/CodeSnippets/Activity2.2.1/Step5/ARReleaseProcess_Extension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ public virtual void UpdateBalances(ARAdjust adj,
5454
{
5555
var paidPercent = (ardoc.CuryOrigDocAmt - ardoc.CuryDocBal) * 100
5656
/ ardoc.CuryOrigDocAmt;
57-
var paymentExt = PXCache<ARPayment>.
58-
GetExtension<ARPaymentExt>(payment);
57+
var paymentExt = PXCache<ARRegister>.
58+
GetExtension<ARRegisterExt>(payment);
5959
if (paidPercent >= paymentExt.UsrPrepaymentPercent)
6060
{
6161
RSSVWorkOrder.WorkflowEvents
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<field name="WorkOrders.UsrOrderType"
3+
before="#fsColumnA-Order FIELD[name='OrderNbr']">
4+
</field>
5+
</template>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import {
2+
PXFieldState,
3+
fieldInfo
4+
} from "client-controls";
5+
import {
6+
RS301000,
7+
RSSVWorkOrder
8+
} from "src/customizationScreens/Company/screens/RS/RS301000/RS301000";
9+
10+
export interface RS301000_PhoneRepairShop_UsrOrderType extends RS301000 {}
11+
export class RS301000_PhoneRepairShop_UsrOrderType {}
12+
13+
export interface RSSVWorkOrder_PhoneRepairShop_UsrOrderType
14+
extends RSSVWorkOrder {}
15+
export class RSSVWorkOrder_PhoneRepairShop_UsrOrderType {
16+
@fieldInfo({ commitChanges: true })
17+
UsrOrderType: PXFieldState;
18+
}

WorkflowDevelopment/T270/CodeSnippets/Activity3.3.1/Step1/RSSVWorkOrder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ public abstract class tstamp : PX.Data.BQL.BqlByteArray.Field<tstamp> { }
218218
public abstract class noteID : PX.Data.BQL.BqlGuid.Field<noteID> { }
219219
#endregion
220220

221-
public class WorkflowEvents :
222-
PXEntityEvent<ARRegister>.Container<WorkflowEvents>
221+
public class WorkflowEvents : PXEntityEvent<ARRegister>.Container<WorkflowEvents>
223222
{
224223
public PXEntityEvent<ARRegister> InvoiceGotPrepaid = null!;
225224
}
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<field name="Document.UsrPrepaymentPercent" after="#columnSecond-Document FIELD[name='PaymentMethodID']"></field>
3+
</template>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
import {
2+
PXFieldState,
3+
PXFieldOptions,
4+
PXView,
5+
updateDecorator,
6+
removeDecorator,
7+
featureInstalled,
8+
FeaturesSet,
9+
placeBeforeView,
10+
placeAfterView,
11+
placeBeforeProperty,
12+
placeAfterProperty,
13+
graphInfo,
14+
viewInfo,
15+
gridConfig,
16+
columnConfig,
17+
treeConfig,
18+
controlConfig,
19+
linkCommand,
20+
fieldOptions,
21+
fieldConfig,
22+
fieldInfo,
23+
headerDescription,
24+
autoRefresh,
25+
mappedToViewField,
26+
suppressLabel,
27+
readOnly,
28+
disabled,
29+
unbound,
30+
text,
31+
multiLine,
32+
primaryKey,
33+
type,
34+
ControlParameter,
35+
NetType,
36+
MenuItemRenderType,
37+
ScrollMode,
38+
TextAlign,
39+
GridPreset,
40+
GridColumnType,
41+
GridColumnShowHideMode,
42+
GridColumnDisplayMode,
43+
GridAutoGrowMode,
44+
GridPagerMode,
45+
GridFastFilterVisibility,
46+
GridNoteFilesShowMode,
47+
HeaderDescription,
48+
GridColumnGeneration,
49+
GridFilterBarVisibility,
50+
NodeSelectMode,
51+
PXSelectorMode,
52+
ApplySuggestionMode,
53+
ITextEditorControlConfig,
54+
ITimeSpanConfig,
55+
ISelectorControlConfig,
56+
ISegmentedSelectorControlConfig,
57+
IEditorControlConfig,
58+
INumberEditorControlConfig,
59+
IMaskEditorControlConfig,
60+
IMailEditorControlConfig,
61+
ILinkEditorControlConfig,
62+
IDropDownConfig,
63+
IDatetimeEditControlConfig,
64+
IColorPickerControlConfig,
65+
ICheckBoxControlConfig,
66+
ICalendarControlConfig,
67+
IBranchSelectorConfig,
68+
IBarcodeInputControlConfig,
69+
ITreeSelectorConfig,
70+
IRichTextEditorConfig,
71+
IFormulaEditorConfig,
72+
ICurrencyControlConfig,
73+
FieldGenerationMode,
74+
} from "client-controls";
75+
import { AR302000, ARPayment } from "src/screens/AR/AR302000/AR302000";
76+
77+
export interface AR302000_PhoneRepairShop_generated extends AR302000 {}
78+
export class AR302000_PhoneRepairShop_generated {}
79+
80+
export interface ARPayment_PhoneRepairShop_generated extends ARPayment {}
81+
export class ARPayment_PhoneRepairShop_generated {
82+
UsrPrepaymentPercent: PXFieldState;
83+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<field name="ItemSettings.UsrRepairItem" after="#fsItemDefaults-General FIELD[name='ItemType']"></field>
3+
<field name="ItemSettings.UsrRepairItemType" after="#fsItemDefaults-General FIELD[name='ItemSettings.UsrRepairItem']"></field>
4+
<qp-tab id="tab-CompatibleDevices" caption="Compatible Devices" after="#tab-PriceCost">
5+
<qp-grid id="grid-CompatibleDevices" view.bind="CompatibleDevices">
6+
</qp-grid>
7+
</qp-tab>
8+
</template>

0 commit comments

Comments
 (0)