acumatica-cli 0.7.0__tar.gz → 0.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/PKG-INFO +1 -1
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/pyproject.toml +1 -1
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/bootstrap_project.xml +106 -5
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/run.py +60 -7
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/seed.py +2 -2
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/50-gl-preferences.yaml +2 -2
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/60-ledger-company.yaml +2 -2
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/bootstrap/company.yaml +2 -2
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/bootstrap/credit-terms.yaml +2 -2
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/setup/10-financial-year.yaml +1 -1
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/setup/20-master-calendar.yaml +1 -1
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/setup/30-open-periods.yaml +1 -1
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/README.md +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/__init__.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/bootstrap.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/bootstrap_plugin.cs +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/cli.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/client.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/config.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/extract.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/extract_manifest.yaml +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/firstlogin.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/models.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/output.py +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/10-subaccounts.yaml +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/20-accounts.yaml +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/40-ledger.yaml +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/90-uoms.yaml +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/bootstrap/features.yaml +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/env +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/gitignore +0 -0
- {acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/tenant.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "acumatica-cli"
|
|
3
|
-
version = "0.
|
|
3
|
+
version = "0.8.0"
|
|
4
4
|
description = "Acumatica ERP Config-as-Code: tenant provisioning, baseline config, and reference data"
|
|
5
5
|
authors = [{ name = "Konstantin Borovik", email = "kb@lab5.ca" }]
|
|
6
6
|
readme = "README.md"
|
|
@@ -157,7 +157,12 @@
|
|
|
157
157
|
fields with no server default (read off the LAB5 PUT
|
|
158
158
|
2026-07-13): INProgressAcctID/INProgressSubID (the WIP
|
|
159
159
|
account) + the four reason codes (Issues/Receipt/
|
|
160
|
-
Adjustment/PI) - all exposed; HoldEntry = the echo flag
|
|
160
|
+
Adjustment/PI) - all exposed; HoldEntry = the echo flag;
|
|
161
|
+
INTransitAcctID/INTransitSubID join once the Warehouse
|
|
162
|
+
feature is on (update 500s "'In-Transit Account' cannot
|
|
163
|
+
be empty", P5 probe); UpdateGL defaults OFF - released
|
|
164
|
+
IN documents move quantities but post no GL (COGS and
|
|
165
|
+
PO accrual sat at zero while revenue moved, P5 probe).
|
|
161
166
|
- ReasonCode CS211000 -> ReasonCodeMaint, PrimaryView reasoncode
|
|
162
167
|
(PX.Objects.CS.ReasonCode) - no Default-endpoint entity,
|
|
163
168
|
and the INSetup reason-code fields above hard-require
|
|
@@ -169,11 +174,18 @@
|
|
|
169
174
|
(ARSetup); HoldEntry echo field.
|
|
170
175
|
- SOPreferences SO101000 -> SOSetupMaint, PrimaryView sosetup (SOSetup);
|
|
171
176
|
DefaultOrderType doubles as the echo field and the R1
|
|
172
|
-
probe (does order type SO pre-exist on an empty tenant)
|
|
177
|
+
probe (does order type SO pre-exist on an empty tenant);
|
|
178
|
+
HoldShipments/RequireShipmentTotal off + AutoReleaseIN on
|
|
179
|
+
keep the shipment->invoice chain scriptable (template
|
|
180
|
+
defaults park shipments On Hold and refuse confirmation
|
|
181
|
+
without a control total - P5 probes).
|
|
173
182
|
- POPreferences PO101000 -> POSetupMaint, PrimaryView Setup (POSetup);
|
|
174
183
|
HoldReceipts echo field + RCReturnReasonCodeID (the one
|
|
175
184
|
POSetup field the live insert named as required - a
|
|
176
|
-
Vendor Return usage reason code, 2026-07-13)
|
|
185
|
+
Vendor Return usage reason code, 2026-07-13) +
|
|
186
|
+
AutoReleaseIN (default off: a released PO receipt leaves
|
|
187
|
+
its IN document Balanced and qty never lands on hand -
|
|
188
|
+
P5 probe).
|
|
177
189
|
- AvailabilityCalculationRule IN201500 -> INAvailabilitySchemeMaint,
|
|
178
190
|
PrimaryView Schemes (INAvailabilityScheme) - an empty
|
|
179
191
|
tenant has zero scheme rows and ItemClass 422s
|
|
@@ -209,6 +221,23 @@
|
|
|
209
221
|
fixed-day-of-month choice; the AgeDays00-02 aging bounds
|
|
210
222
|
default inconsistently at raw insert ("end day earlier
|
|
211
223
|
than its start day" 422) so the seed supplies them.
|
|
224
|
+
- Warehouse IN204000 -> INSiteMaint, PrimaryView site (DAC
|
|
225
|
+
PX.Objects.IN.INSite) - the Default Warehouse entity has
|
|
226
|
+
no address surface, and the auto-created warehouse
|
|
227
|
+
Address 422s "'Country' cannot be empty" at insert (P5
|
|
228
|
+
probe 2026-07-13; the T65 vendor class, but Default has
|
|
229
|
+
no path). SiteCD/Descr/Active on the primary view,
|
|
230
|
+
CountryID through the Address view.
|
|
231
|
+
- OrderType SO201000 -> SOOrderTypeMaint, PrimaryView soordertype
|
|
232
|
+
(DAC PX.Objects.SO.SOOrderType) - no Default-endpoint
|
|
233
|
+
entity, and a fresh tenant has ZERO order-type rows
|
|
234
|
+
(they live in the template company, CompanyID 1,
|
|
235
|
+
Active=0 - sqlcmd-verified 2026-07-13): a SalesOrder
|
|
236
|
+
PUT answers 200 with an UNSAVED row (OrderNbr stays
|
|
237
|
+
<SELECT>, CustomerID silently empty) because numbering
|
|
238
|
+
never resolves. Keyed PUT on OrderType materializes the
|
|
239
|
+
template row into the tenant; Active activates it; the
|
|
240
|
+
freight pair is required at persist (422, no default).
|
|
212
241
|
- CashAccount CA202000 -> CashAccountMaint, PrimaryView CashAccount
|
|
213
242
|
(PX.Objects.CA.CashAccount) - Default endpoint answers
|
|
214
243
|
404. CuryID stays out (derived from the GL account,
|
|
@@ -218,9 +247,9 @@
|
|
|
218
247
|
Features (CS100000) stays OUT of the endpoint - writes through any
|
|
219
248
|
contract endpoint do not persist (T3 verdict); the plugin owns features.
|
|
220
249
|
-->
|
|
221
|
-
<Customization level="" description="acu bootstrap: CustomizationPlugin enables features on publish; Bootstrap endpoint exposes company + credit terms + financial currency + GL preferences + ledger-company link + financial year + calendars + period activation + module preferences (IN/AP/AR/SO/PO) + availability rule + posting class + cash account + vendor class + statement cycle" product-version="26.101">
|
|
250
|
+
<Customization level="" description="acu bootstrap: CustomizationPlugin enables features on publish; Bootstrap endpoint exposes company + credit terms + financial currency + GL preferences + ledger-company link + financial year + calendars + period activation + module preferences (IN/AP/AR/SO/PO) + availability rule + posting class + cash account + vendor class + statement cycle + warehouse + order type" product-version="26.101">
|
|
222
251
|
<EntityEndpoint>
|
|
223
|
-
<Endpoint xmlns="http://www.acumatica.com/entity/maintenance/5.31" name="Bootstrap" version="1.
|
|
252
|
+
<Endpoint xmlns="http://www.acumatica.com/entity/maintenance/5.31" name="Bootstrap" version="1.7.0" systemContractVersion="4">
|
|
224
253
|
<TopLevelEntity name="Company" screen="CS101500">
|
|
225
254
|
<Fields>
|
|
226
255
|
<Field name="AcctCD" type="StringValue" />
|
|
@@ -532,6 +561,9 @@
|
|
|
532
561
|
<Field name="ReceiptReasonCode" type="StringValue" />
|
|
533
562
|
<Field name="AdjustmentReasonCode" type="StringValue" />
|
|
534
563
|
<Field name="PIReasonCode" type="StringValue" />
|
|
564
|
+
<Field name="INTransitAcctID" type="StringValue" />
|
|
565
|
+
<Field name="INTransitSubID" type="StringValue" />
|
|
566
|
+
<Field name="UpdateGL" type="BooleanValue" />
|
|
535
567
|
</Fields>
|
|
536
568
|
<Mappings>
|
|
537
569
|
<Mapping field="HoldEntry">
|
|
@@ -555,6 +587,15 @@
|
|
|
555
587
|
<Mapping field="PIReasonCode">
|
|
556
588
|
<To object="setup" field="PIReasonCode" />
|
|
557
589
|
</Mapping>
|
|
590
|
+
<Mapping field="INTransitAcctID">
|
|
591
|
+
<To object="setup" field="INTransitAcctID" />
|
|
592
|
+
</Mapping>
|
|
593
|
+
<Mapping field="INTransitSubID">
|
|
594
|
+
<To object="setup" field="INTransitSubID" />
|
|
595
|
+
</Mapping>
|
|
596
|
+
<Mapping field="UpdateGL">
|
|
597
|
+
<To object="setup" field="UpdateGL" />
|
|
598
|
+
</Mapping>
|
|
558
599
|
</Mappings>
|
|
559
600
|
</TopLevelEntity>
|
|
560
601
|
<TopLevelEntity name="ReasonCode" screen="CS211000">
|
|
@@ -606,22 +647,38 @@
|
|
|
606
647
|
<TopLevelEntity name="SOPreferences" screen="SO101000">
|
|
607
648
|
<Fields>
|
|
608
649
|
<Field name="DefaultOrderType" type="StringValue" />
|
|
650
|
+
<Field name="HoldShipments" type="BooleanValue" />
|
|
651
|
+
<Field name="RequireShipmentTotal" type="BooleanValue" />
|
|
652
|
+
<Field name="AutoReleaseIN" type="BooleanValue" />
|
|
609
653
|
</Fields>
|
|
610
654
|
<Mappings>
|
|
611
655
|
<Mapping field="DefaultOrderType">
|
|
612
656
|
<To object="sosetup" field="DefaultOrderType" />
|
|
613
657
|
</Mapping>
|
|
658
|
+
<Mapping field="HoldShipments">
|
|
659
|
+
<To object="sosetup" field="HoldShipments" />
|
|
660
|
+
</Mapping>
|
|
661
|
+
<Mapping field="RequireShipmentTotal">
|
|
662
|
+
<To object="sosetup" field="RequireShipmentTotal" />
|
|
663
|
+
</Mapping>
|
|
664
|
+
<Mapping field="AutoReleaseIN">
|
|
665
|
+
<To object="sosetup" field="AutoReleaseIN" />
|
|
666
|
+
</Mapping>
|
|
614
667
|
</Mappings>
|
|
615
668
|
</TopLevelEntity>
|
|
616
669
|
<TopLevelEntity name="POPreferences" screen="PO101000">
|
|
617
670
|
<Fields>
|
|
618
671
|
<Field name="HoldReceipts" type="BooleanValue" />
|
|
619
672
|
<Field name="RCReturnReasonCodeID" type="StringValue" />
|
|
673
|
+
<Field name="AutoReleaseIN" type="BooleanValue" />
|
|
620
674
|
</Fields>
|
|
621
675
|
<Mappings>
|
|
622
676
|
<Mapping field="HoldReceipts">
|
|
623
677
|
<To object="Setup" field="HoldReceipts" />
|
|
624
678
|
</Mapping>
|
|
679
|
+
<Mapping field="AutoReleaseIN">
|
|
680
|
+
<To object="Setup" field="AutoReleaseIN" />
|
|
681
|
+
</Mapping>
|
|
625
682
|
<Mapping field="RCReturnReasonCodeID">
|
|
626
683
|
<To object="Setup" field="RCReturnReasonCodeID" />
|
|
627
684
|
</Mapping>
|
|
@@ -861,6 +918,50 @@
|
|
|
861
918
|
</Mapping>
|
|
862
919
|
</Mappings>
|
|
863
920
|
</TopLevelEntity>
|
|
921
|
+
<TopLevelEntity name="Warehouse" screen="IN204000">
|
|
922
|
+
<Fields>
|
|
923
|
+
<Field name="SiteCD" type="StringValue" />
|
|
924
|
+
<Field name="Descr" type="StringValue" />
|
|
925
|
+
<Field name="Active" type="BooleanValue" />
|
|
926
|
+
<Field name="CountryID" type="StringValue" />
|
|
927
|
+
</Fields>
|
|
928
|
+
<Mappings>
|
|
929
|
+
<Mapping field="SiteCD">
|
|
930
|
+
<To object="site" field="SiteCD" />
|
|
931
|
+
</Mapping>
|
|
932
|
+
<Mapping field="Descr">
|
|
933
|
+
<To object="site" field="Descr" />
|
|
934
|
+
</Mapping>
|
|
935
|
+
<Mapping field="Active">
|
|
936
|
+
<To object="site" field="Active" />
|
|
937
|
+
</Mapping>
|
|
938
|
+
<Mapping field="CountryID">
|
|
939
|
+
<To object="Address" field="CountryID" />
|
|
940
|
+
</Mapping>
|
|
941
|
+
</Mappings>
|
|
942
|
+
</TopLevelEntity>
|
|
943
|
+
<TopLevelEntity name="OrderType" screen="SO201000">
|
|
944
|
+
<Fields>
|
|
945
|
+
<Field name="OrderType" type="StringValue" />
|
|
946
|
+
<Field name="Active" type="BooleanValue" />
|
|
947
|
+
<Field name="FreightAcctID" type="StringValue" />
|
|
948
|
+
<Field name="FreightSubID" type="StringValue" />
|
|
949
|
+
</Fields>
|
|
950
|
+
<Mappings>
|
|
951
|
+
<Mapping field="OrderType">
|
|
952
|
+
<To object="soordertype" field="OrderType" />
|
|
953
|
+
</Mapping>
|
|
954
|
+
<Mapping field="Active">
|
|
955
|
+
<To object="soordertype" field="Active" />
|
|
956
|
+
</Mapping>
|
|
957
|
+
<Mapping field="FreightAcctID">
|
|
958
|
+
<To object="soordertype" field="FreightAcctID" />
|
|
959
|
+
</Mapping>
|
|
960
|
+
<Mapping field="FreightSubID">
|
|
961
|
+
<To object="soordertype" field="FreightSubID" />
|
|
962
|
+
</Mapping>
|
|
963
|
+
</Mappings>
|
|
964
|
+
</TopLevelEntity>
|
|
864
965
|
<TopLevelEntity name="CashAccount" screen="CA202000">
|
|
865
966
|
<Fields>
|
|
866
967
|
<Field name="CashAccountCD" type="StringValue" />
|
|
@@ -56,6 +56,7 @@ from .models import Model, validation_summary
|
|
|
56
56
|
from .seed import _norm # pyright: ignore[reportPrivateUsage]
|
|
57
57
|
|
|
58
58
|
_VAR = re.compile(r"\$\{([A-Za-z0-9_]+)\}")
|
|
59
|
+
_PATH = re.compile(r"([A-Za-z0-9_]+)(?:\[(\d+)\])?")
|
|
59
60
|
|
|
60
61
|
|
|
61
62
|
class ActionSpec(Model):
|
|
@@ -75,31 +76,41 @@ class WaitSpec(Model):
|
|
|
75
76
|
endpoint: str | None = None
|
|
76
77
|
|
|
77
78
|
|
|
79
|
+
class GetOp(Model):
|
|
80
|
+
"""Key-URL fetch a get step performs; expand pulls detail arrays."""
|
|
81
|
+
|
|
82
|
+
entity: str
|
|
83
|
+
keys: list[Any]
|
|
84
|
+
expand: list[str] | None = None
|
|
85
|
+
endpoint: str | None = None
|
|
86
|
+
|
|
87
|
+
|
|
78
88
|
class Step(Model):
|
|
79
|
-
"""One scenario step: exactly one op (put | action | wait-only)."""
|
|
89
|
+
"""One scenario step: exactly one op (put | action | get | wait-only)."""
|
|
80
90
|
|
|
81
91
|
id: str
|
|
82
92
|
put: str | None = None
|
|
83
93
|
action: ActionSpec | None = None
|
|
94
|
+
get: GetOp | None = None
|
|
84
95
|
record: dict[str, Any] | None = None
|
|
85
96
|
parameters: dict[str, Any] | None = None
|
|
86
|
-
capture: dict[str, str] | None = None # {Field: var_name}
|
|
97
|
+
capture: dict[str, str] | None = None # {Field-or-path: var_name}
|
|
87
98
|
wait: WaitSpec | None = None
|
|
88
99
|
endpoint: str | None = None
|
|
89
100
|
|
|
90
101
|
@model_validator(mode="after")
|
|
91
102
|
def _one_op(self) -> "Step":
|
|
92
|
-
ops = [op for op in (self.put, self.action) if op is not None]
|
|
103
|
+
ops = [op for op in (self.put, self.action, self.get) if op is not None]
|
|
93
104
|
if len(ops) > 1:
|
|
94
|
-
raise ValueError(f"step '{self.id}': put
|
|
105
|
+
raise ValueError(f"step '{self.id}': put, action, get are exclusive")
|
|
95
106
|
if not ops and self.wait is None:
|
|
96
|
-
raise ValueError(f"step '{self.id}': needs one of put, action, wait")
|
|
107
|
+
raise ValueError(f"step '{self.id}': needs one of put, action, get, wait")
|
|
97
108
|
if self.put is not None and self.record is None:
|
|
98
109
|
raise ValueError(f"step '{self.id}': put needs a record")
|
|
99
110
|
if self.action is not None and self.record is None:
|
|
100
111
|
raise ValueError(f"step '{self.id}': action needs a record")
|
|
101
|
-
if self.capture is not None and self.put is None:
|
|
102
|
-
raise ValueError(f"step '{self.id}': capture rides a put step")
|
|
112
|
+
if self.capture is not None and self.put is None and self.get is None:
|
|
113
|
+
raise ValueError(f"step '{self.id}': capture rides a put or get step")
|
|
103
114
|
return self
|
|
104
115
|
|
|
105
116
|
|
|
@@ -200,6 +211,34 @@ def _subst(value: Any, variables: dict[str, Any]) -> Any:
|
|
|
200
211
|
return value
|
|
201
212
|
|
|
202
213
|
|
|
214
|
+
def _resolve_path(record: dict[str, Any], path: str) -> Any:
|
|
215
|
+
"""Resolve a dotted/indexed capture path (`Shipments[0].ShipmentNbr`).
|
|
216
|
+
|
|
217
|
+
Action-created documents (T66) assign numbers readable only off the
|
|
218
|
+
parent's expanded detail rows - the path walks unwrapped nesting:
|
|
219
|
+
a bare segment reads a field, `Seg[i]` indexes a detail array.
|
|
220
|
+
Missing segments raise with the path named.
|
|
221
|
+
"""
|
|
222
|
+
value: Any = record
|
|
223
|
+
for segment in path.split("."):
|
|
224
|
+
m = _PATH.fullmatch(segment)
|
|
225
|
+
if m is None:
|
|
226
|
+
raise RuntimeError(f"capture path {path!r}: bad segment {segment!r}")
|
|
227
|
+
field, index = m.group(1), m.group(2)
|
|
228
|
+
if not isinstance(value, dict) or field not in value:
|
|
229
|
+
raise RuntimeError(
|
|
230
|
+
f"capture path {path!r}: field {field!r} not in the record"
|
|
231
|
+
)
|
|
232
|
+
value = value[field]
|
|
233
|
+
if index is not None:
|
|
234
|
+
if not isinstance(value, list) or int(index) >= len(value):
|
|
235
|
+
raise RuntimeError(
|
|
236
|
+
f"capture path {path!r}: index [{index}] out of range"
|
|
237
|
+
)
|
|
238
|
+
value = value[int(index)]
|
|
239
|
+
return value
|
|
240
|
+
|
|
241
|
+
|
|
203
242
|
def _inquire(client: AcumaticaClient, expect: Expect) -> dict[str, float]:
|
|
204
243
|
"""Probe a contract inquiry; sum each delta field over matching rows."""
|
|
205
244
|
assert expect.inquire is not None
|
|
@@ -258,6 +297,8 @@ def _dry_run(scenario: Scenario) -> None:
|
|
|
258
297
|
if step.put
|
|
259
298
|
else f"invoke {step.action.entity}/{step.action.name}"
|
|
260
299
|
if step.action
|
|
300
|
+
else f"get {step.get.entity}"
|
|
301
|
+
if step.get
|
|
261
302
|
else f"wait {step.wait.entity}" # pyright: ignore[reportOptionalMemberAccess]
|
|
262
303
|
)
|
|
263
304
|
output.data(f" would {op} [{step.id}]")
|
|
@@ -290,6 +331,18 @@ def _run_step(client: AcumaticaClient, step: Step, variables: dict[str, Any]) ->
|
|
|
290
331
|
step.endpoint,
|
|
291
332
|
)
|
|
292
333
|
output.data(f" invoke {step.action.name} [{step.id}]")
|
|
334
|
+
elif step.get is not None:
|
|
335
|
+
keys = _subst(step.get.keys, variables)
|
|
336
|
+
params = (
|
|
337
|
+
{"$expand": ",".join(sorted(step.get.expand))} if step.get.expand else None
|
|
338
|
+
)
|
|
339
|
+
record = client.get_record(step.get.entity, keys, step.get.endpoint, params)
|
|
340
|
+
if record is None:
|
|
341
|
+
raise RuntimeError(f"step '{step.id}': {step.get.entity} {keys} not found")
|
|
342
|
+
fetched = unwrap(record)
|
|
343
|
+
output.data(f" get {step.get.entity} [{step.id}]")
|
|
344
|
+
for path, var in (step.capture or {}).items():
|
|
345
|
+
variables[var] = _resolve_path(fetched, path)
|
|
293
346
|
if step.wait is not None:
|
|
294
347
|
_wait(client, step.wait, variables)
|
|
295
348
|
output.data(f" wait ok [{step.id}]")
|
|
@@ -7,7 +7,7 @@ Baseline file format:
|
|
|
7
7
|
|
|
8
8
|
entity: Currency # entity name in the contract endpoint
|
|
9
9
|
key: CurrencyID # key field(s), string or list
|
|
10
|
-
endpoint: Bootstrap/1.
|
|
10
|
+
endpoint: Bootstrap/1.7.0 # optional: override the instance endpoint
|
|
11
11
|
records:
|
|
12
12
|
- CurrencyID: "CAD"
|
|
13
13
|
Description: Canadian Dollar
|
|
@@ -34,7 +34,7 @@ cannot express (calendar generation and the like):
|
|
|
34
34
|
|
|
35
35
|
action: GenerateCalendar # action name on the endpoint entity
|
|
36
36
|
entity: MasterCalendar # entity the action hangs off
|
|
37
|
-
endpoint: Bootstrap/1.
|
|
37
|
+
endpoint: Bootstrap/1.7.0 # optional: override the instance endpoint
|
|
38
38
|
record: { FinancialYear: 2026 }
|
|
39
39
|
parameters: { FromYear: 2026, ToYear: 2026 } # optional
|
|
40
40
|
done_when: { filter: "FinancialYear eq '2026'" }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# General Ledger preferences (GL102000) via the custom Bootstrap/1.
|
|
1
|
+
# General Ledger preferences (GL102000) via the custom Bootstrap/1.7.0
|
|
2
2
|
# endpoint (the per-file endpoint: override) - the Default endpoint has
|
|
3
3
|
# no GL-setup entity, and every Finance screen throws
|
|
4
4
|
# PXSetupNotEnteredException until the GLSetup singleton row exists. The
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
# referenced here must exist.
|
|
13
13
|
entity: GLPreferences
|
|
14
14
|
key: RetEarnAccountID
|
|
15
|
-
endpoint: Bootstrap/1.
|
|
15
|
+
endpoint: Bootstrap/1.7.0
|
|
16
16
|
records:
|
|
17
17
|
- RetEarnAccountID: '32000'
|
|
18
18
|
YtdNetIncAccountID: '33000'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Org-ledger link (GL201500) via the custom Bootstrap/1.
|
|
1
|
+
# Org-ledger link (GL201500) via the custom Bootstrap/1.7.0 endpoint (the
|
|
2
2
|
# per-file endpoint: override). The Default endpoint's Ledger.Companies
|
|
3
3
|
# detail is write-tolerated then silently dropped (PUT answers 200 and
|
|
4
4
|
# echoes the row, the link table stays empty), so the link writes through
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
# (company.yaml).
|
|
22
22
|
entity: LedgerCompany
|
|
23
23
|
key: [LedgerCD, OrganizationID]
|
|
24
|
-
endpoint: Bootstrap/1.
|
|
24
|
+
endpoint: Bootstrap/1.7.0
|
|
25
25
|
records:
|
|
26
26
|
- LedgerCD: ACTUAL
|
|
27
27
|
OrganizationID: COMPANY
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/bootstrap/company.yaml
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Company (CS101500) via the custom Bootstrap/1.
|
|
1
|
+
# Company (CS101500) via the custom Bootstrap/1.7.0 endpoint (the per-file
|
|
2
2
|
# endpoint: override) - built-in endpoints cannot create the first
|
|
3
3
|
# organization on a virgin tenant. List values are the EXTERNAL labels
|
|
4
4
|
# ('Without Branches', not the DAC's 'WithoutBranches'); CountryID feeds
|
|
5
5
|
# the org's Main Address - required on first save.
|
|
6
6
|
entity: Company
|
|
7
7
|
key: AcctCD
|
|
8
|
-
endpoint: Bootstrap/1.
|
|
8
|
+
endpoint: Bootstrap/1.7.0
|
|
9
9
|
records:
|
|
10
10
|
- AcctCD: COMPANY
|
|
11
11
|
AcctName: Example Company
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/bootstrap/credit-terms.yaml
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
# Credit terms (CS206500) via the custom Bootstrap/1.
|
|
1
|
+
# Credit terms (CS206500) via the custom Bootstrap/1.7.0 endpoint (the
|
|
2
2
|
# per-file endpoint: override) - the Default endpoint has no credit-terms
|
|
3
3
|
# entity. List values are the EXTERNAL labels: VisibleTo = All, Vendors,
|
|
4
4
|
# Customers, Disabled; DueType/DiscType = Fixed Number of Days, Day of
|
|
5
5
|
# Next Month, End of Month, ...
|
|
6
6
|
entity: CreditTerms
|
|
7
7
|
key: TermsID
|
|
8
|
-
endpoint: Bootstrap/1.
|
|
8
|
+
endpoint: Bootstrap/1.7.0
|
|
9
9
|
records:
|
|
10
10
|
- TermsID: NET30
|
|
11
11
|
Descr: Net 30 Days
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/10-subaccounts.yaml
RENAMED
|
File without changes
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/20-accounts.yaml
RENAMED
|
File without changes
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/40-ledger.yaml
RENAMED
|
File without changes
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/baseline/90-uoms.yaml
RENAMED
|
File without changes
|
{acumatica_cli-0.7.0 → acumatica_cli-0.8.0}/src/acumatica_cli/templates/bootstrap/features.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|