@newpeak/barista-cli 0.1.11 → 0.1.13
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.
- package/dist/commands/liberica/dict-types/get.d.ts.map +1 -1
- package/dist/commands/liberica/dict-types/get.js +9 -1
- package/dist/commands/liberica/dict-types/get.js.map +1 -1
- package/dist/commands/liberica/dict-types/index.d.ts.map +1 -1
- package/dist/commands/liberica/dict-types/index.js +2 -0
- package/dist/commands/liberica/dict-types/index.js.map +1 -1
- package/dist/commands/liberica/dict-types/list.d.ts.map +1 -1
- package/dist/commands/liberica/dict-types/list.js +19 -1
- package/dist/commands/liberica/dict-types/list.js.map +1 -1
- package/dist/commands/liberica/dict-types/tenant-items.d.ts +3 -0
- package/dist/commands/liberica/dict-types/tenant-items.d.ts.map +1 -0
- package/dist/commands/liberica/dict-types/tenant-items.js +275 -0
- package/dist/commands/liberica/dict-types/tenant-items.js.map +1 -0
- package/dist/commands/liberica/dicts/get.d.ts.map +1 -1
- package/dist/commands/liberica/dicts/get.js +9 -1
- package/dist/commands/liberica/dicts/get.js.map +1 -1
- package/dist/commands/liberica/dicts/list.d.ts.map +1 -1
- package/dist/commands/liberica/dicts/list.js +9 -1
- package/dist/commands/liberica/dicts/list.js.map +1 -1
- package/dist/core/api/client.d.ts +7 -7
- package/dist/core/api/client.d.ts.map +1 -1
- package/dist/core/api/client.js +15 -12
- package/dist/core/api/client.js.map +1 -1
- package/dist/core/config/manager.d.ts.map +1 -1
- package/dist/core/config/manager.js +1 -0
- package/dist/core/config/manager.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/types/dict.d.ts +2 -0
- package/dist/types/dict.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +7 -3
- package/docs/ARCHITECTURE.md +0 -184
- package/docs/COMMANDS.md +0 -352
- package/docs/COMMAND_DESIGN_SPEC.md +0 -840
- package/docs/INTEGRATION_NOTES.md +0 -270
- package/docs/commands/REFERENCE.md +0 -323
- package/docs/commands/arabica/auth/index.md +0 -296
- package/docs/commands/liberica/auth/index.md +0 -133
- package/docs/commands/liberica/calendar/DESIGN.md +0 -333
- package/docs/commands/liberica/client-contacts/create.md +0 -152
- package/docs/commands/liberica/client-contacts/delete.md +0 -123
- package/docs/commands/liberica/client-contacts/get.md +0 -133
- package/docs/commands/liberica/client-contacts/list.md +0 -143
- package/docs/commands/liberica/client-contacts/update.md +0 -158
- package/docs/commands/liberica/context/index.md +0 -60
- package/docs/commands/liberica/currency/create.md +0 -145
- package/docs/commands/liberica/currency/delete.md +0 -121
- package/docs/commands/liberica/currency/disable.md +0 -119
- package/docs/commands/liberica/currency/enable.md +0 -115
- package/docs/commands/liberica/currency/get.md +0 -118
- package/docs/commands/liberica/currency/list.md +0 -149
- package/docs/commands/liberica/currency/update.md +0 -141
- package/docs/commands/liberica/employees/create.md +0 -185
- package/docs/commands/liberica/employees/disable.md +0 -138
- package/docs/commands/liberica/employees/enable.md +0 -137
- package/docs/commands/liberica/employees/get.md +0 -153
- package/docs/commands/liberica/employees/list.md +0 -168
- package/docs/commands/liberica/employees/update.md +0 -180
- package/docs/commands/liberica/locations/create.md +0 -195
- package/docs/commands/liberica/locations/list.md +0 -171
- package/docs/commands/liberica/materials/create.md +0 -293
- package/docs/commands/liberica/materials/delete.md +0 -240
- package/docs/commands/liberica/materials/disable.md +0 -150
- package/docs/commands/liberica/materials/enable.md +0 -146
- package/docs/commands/liberica/materials/get.md +0 -188
- package/docs/commands/liberica/materials/list.md +0 -198
- package/docs/commands/liberica/materials/update.md +0 -250
- package/docs/commands/liberica/orgs/list.md +0 -62
- package/docs/commands/liberica/positions/list.md +0 -61
- package/docs/commands/liberica/roles/list.md +0 -67
- package/docs/commands/liberica/stock/ledger.md +0 -209
- package/docs/commands/liberica/stock/list.md +0 -165
- package/docs/commands/liberica/supplier-contacts/create.md +0 -152
- package/docs/commands/liberica/supplier-contacts/delete.md +0 -123
- package/docs/commands/liberica/supplier-contacts/get.md +0 -133
- package/docs/commands/liberica/supplier-contacts/list.md +0 -143
- package/docs/commands/liberica/supplier-contacts/update.md +0 -158
- package/docs/commands/liberica/teams/issues/close.md +0 -161
- package/docs/commands/liberica/teams/issues/create.md +0 -212
- package/docs/commands/liberica/teams/issues/delete.md +0 -179
- package/docs/commands/liberica/teams/issues/get.md +0 -167
- package/docs/commands/liberica/teams/issues/list.md +0 -182
- package/docs/commands/liberica/teams/issues/tests-design.md +0 -341
- package/docs/commands/liberica/teams/issues/update.md +0 -202
- package/docs/commands/liberica/teams/projects/create.md +0 -174
- package/docs/commands/liberica/teams/projects/delete.md +0 -180
- package/docs/commands/liberica/teams/projects/get.md +0 -150
- package/docs/commands/liberica/teams/projects/list.md +0 -179
- package/docs/commands/liberica/teams/projects/update.md +0 -175
- package/docs/commands/liberica/teams/tasks/create.md +0 -163
- package/docs/commands/liberica/teams/tasks/delete.md +0 -109
- package/docs/commands/liberica/teams/tasks/get.md +0 -121
- package/docs/commands/liberica/teams/tasks/list.md +0 -148
- package/docs/commands/liberica/teams/tasks/update.md +0 -158
- package/docs/commands/liberica/teams/work-logs/create.md +0 -151
- package/docs/commands/liberica/teams/work-logs/delete.md +0 -130
- package/docs/commands/liberica/teams/work-logs/get.md +0 -131
- package/docs/commands/liberica/teams/work-logs/list.md +0 -153
- package/docs/commands/liberica/teams/work-logs/update.md +0 -150
- package/docs/commands/liberica/transfer-in-forms/batch-delete.md +0 -157
- package/docs/commands/liberica/transfer-in-forms/batch-review.md +0 -157
- package/docs/commands/liberica/transfer-in-forms/batch-unreview.md +0 -157
- package/docs/commands/liberica/transfer-in-forms/create.md +0 -220
- package/docs/commands/liberica/transfer-in-forms/get.md +0 -221
- package/docs/commands/liberica/transfer-in-forms/list.md +0 -242
- package/docs/commands/liberica/transfer-in-forms/update.md +0 -185
- package/docs/commands/liberica/transfer-out-forms/batch-delete.md +0 -187
- package/docs/commands/liberica/transfer-out-forms/batch-review.md +0 -157
- package/docs/commands/liberica/transfer-out-forms/batch-unreview.md +0 -157
- package/docs/commands/liberica/transfer-out-forms/create.md +0 -280
- package/docs/commands/liberica/transfer-out-forms/get.md +0 -211
- package/docs/commands/liberica/transfer-out-forms/list.md +0 -233
- package/docs/commands/liberica/transfer-out-forms/update.md +0 -286
- package/docs/commands/liberica/uoms/create.md +0 -136
- package/docs/commands/liberica/uoms/delete.md +0 -119
- package/docs/commands/liberica/uoms/disable.md +0 -117
- package/docs/commands/liberica/uoms/enable.md +0 -115
- package/docs/commands/liberica/uoms/get.md +0 -119
- package/docs/commands/liberica/uoms/list.md +0 -155
- package/docs/commands/liberica/uoms/update.md +0 -148
- package/docs/commands/liberica/users/create.md +0 -170
- package/docs/commands/liberica/users/get.md +0 -151
- package/docs/commands/liberica/users/list.md +0 -175
- package/docs/commands/liberica/warehouses/create.md +0 -222
- package/docs/commands/liberica/warehouses/list.md +0 -184
- package/src/commands/arabica/auth/index.ts +0 -277
- package/src/commands/arabica/auth/login.ts +0 -5
- package/src/commands/arabica/auth/logout.ts +0 -5
- package/src/commands/arabica/auth/register.ts +0 -5
- package/src/commands/arabica/auth/status.ts +0 -5
- package/src/commands/arabica/index.ts +0 -23
- package/src/commands/auth.ts +0 -107
- package/src/commands/context.ts +0 -60
- package/src/commands/liberica/auth/index.ts +0 -176
- package/src/commands/liberica/calendar/index.ts +0 -13
- package/src/commands/liberica/calendar/list.ts +0 -214
- package/src/commands/liberica/calendar/set.ts +0 -130
- package/src/commands/liberica/client-contacts/create.ts +0 -115
- package/src/commands/liberica/client-contacts/delete.ts +0 -140
- package/src/commands/liberica/client-contacts/get.ts +0 -103
- package/src/commands/liberica/client-contacts/index.ts +0 -19
- package/src/commands/liberica/client-contacts/list.ts +0 -118
- package/src/commands/liberica/client-contacts/update.ts +0 -137
- package/src/commands/liberica/clients/create.ts +0 -122
- package/src/commands/liberica/clients/delete.ts +0 -125
- package/src/commands/liberica/clients/get.ts +0 -88
- package/src/commands/liberica/clients/index.ts +0 -19
- package/src/commands/liberica/clients/list.ts +0 -123
- package/src/commands/liberica/clients/update.ts +0 -103
- package/src/commands/liberica/context/index.ts +0 -43
- package/src/commands/liberica/currency/create.ts +0 -183
- package/src/commands/liberica/currency/delete.ts +0 -124
- package/src/commands/liberica/currency/disable.ts +0 -147
- package/src/commands/liberica/currency/enable.ts +0 -128
- package/src/commands/liberica/currency/get.ts +0 -91
- package/src/commands/liberica/currency/index.ts +0 -23
- package/src/commands/liberica/currency/list.ts +0 -140
- package/src/commands/liberica/currency/update.ts +0 -129
- package/src/commands/liberica/dict-types/get.ts +0 -74
- package/src/commands/liberica/dict-types/index.ts +0 -15
- package/src/commands/liberica/dict-types/list.ts +0 -118
- package/src/commands/liberica/dict-types/update.ts +0 -134
- package/src/commands/liberica/dicts/create.ts +0 -175
- package/src/commands/liberica/dicts/delete.ts +0 -107
- package/src/commands/liberica/dicts/get.ts +0 -80
- package/src/commands/liberica/dicts/index.ts +0 -19
- package/src/commands/liberica/dicts/list.ts +0 -114
- package/src/commands/liberica/dicts/update.ts +0 -116
- package/src/commands/liberica/employees/create.ts +0 -275
- package/src/commands/liberica/employees/delete.ts +0 -122
- package/src/commands/liberica/employees/disable.ts +0 -97
- package/src/commands/liberica/employees/enable.ts +0 -97
- package/src/commands/liberica/employees/get.ts +0 -115
- package/src/commands/liberica/employees/index.ts +0 -23
- package/src/commands/liberica/employees/list.ts +0 -131
- package/src/commands/liberica/employees/update.ts +0 -157
- package/src/commands/liberica/index.ts +0 -81
- package/src/commands/liberica/materials/create.ts +0 -199
- package/src/commands/liberica/materials/delete.ts +0 -105
- package/src/commands/liberica/materials/disable.ts +0 -148
- package/src/commands/liberica/materials/enable.ts +0 -129
- package/src/commands/liberica/materials/get.ts +0 -83
- package/src/commands/liberica/materials/index.ts +0 -23
- package/src/commands/liberica/materials/list.ts +0 -142
- package/src/commands/liberica/materials/update.ts +0 -125
- package/src/commands/liberica/mould/get.ts +0 -111
- package/src/commands/liberica/mould/index.ts +0 -17
- package/src/commands/liberica/mould/list.ts +0 -157
- package/src/commands/liberica/mould/set-status.ts +0 -99
- package/src/commands/liberica/mould/stock-in.ts +0 -165
- package/src/commands/liberica/operations/active.ts +0 -153
- package/src/commands/liberica/operations/batch-delete.ts +0 -131
- package/src/commands/liberica/operations/copy.ts +0 -138
- package/src/commands/liberica/operations/create.ts +0 -223
- package/src/commands/liberica/operations/deactive.ts +0 -152
- package/src/commands/liberica/operations/delete.ts +0 -128
- package/src/commands/liberica/operations/design.md +0 -587
- package/src/commands/liberica/operations/get.ts +0 -112
- package/src/commands/liberica/operations/index.ts +0 -27
- package/src/commands/liberica/operations/list.ts +0 -180
- package/src/commands/liberica/operations/update.ts +0 -218
- package/src/commands/liberica/orgs/index.ts +0 -34
- package/src/commands/liberica/positions/index.ts +0 -30
- package/src/commands/liberica/roles/index.ts +0 -59
- package/src/commands/liberica/stock/index.ts +0 -13
- package/src/commands/liberica/stock/ledger.ts +0 -159
- package/src/commands/liberica/stock/list.ts +0 -128
- package/src/commands/liberica/supplier-contacts/create.ts +0 -120
- package/src/commands/liberica/supplier-contacts/delete.ts +0 -88
- package/src/commands/liberica/supplier-contacts/get.ts +0 -94
- package/src/commands/liberica/supplier-contacts/index.ts +0 -19
- package/src/commands/liberica/supplier-contacts/list.ts +0 -130
- package/src/commands/liberica/supplier-contacts/update.ts +0 -127
- package/src/commands/liberica/suppliers/create.ts +0 -149
- package/src/commands/liberica/suppliers/delete.ts +0 -102
- package/src/commands/liberica/suppliers/disable.ts +0 -145
- package/src/commands/liberica/suppliers/enable.ts +0 -126
- package/src/commands/liberica/suppliers/get.ts +0 -86
- package/src/commands/liberica/suppliers/index.ts +0 -23
- package/src/commands/liberica/suppliers/list.ts +0 -134
- package/src/commands/liberica/suppliers/update.ts +0 -128
- package/src/commands/liberica/teams/index.ts +0 -17
- package/src/commands/liberica/teams/issues/close.ts +0 -104
- package/src/commands/liberica/teams/issues/create.ts +0 -254
- package/src/commands/liberica/teams/issues/delete.ts +0 -58
- package/src/commands/liberica/teams/issues/get.ts +0 -78
- package/src/commands/liberica/teams/issues/index.ts +0 -21
- package/src/commands/liberica/teams/issues/list.ts +0 -144
- package/src/commands/liberica/teams/issues/update.ts +0 -141
- package/src/commands/liberica/teams/projects/create.ts +0 -159
- package/src/commands/liberica/teams/projects/delete.ts +0 -58
- package/src/commands/liberica/teams/projects/get.ts +0 -87
- package/src/commands/liberica/teams/projects/index.ts +0 -19
- package/src/commands/liberica/teams/projects/list.ts +0 -147
- package/src/commands/liberica/teams/projects/update.ts +0 -117
- package/src/commands/liberica/teams/tasks/create.ts +0 -102
- package/src/commands/liberica/teams/tasks/delete.ts +0 -92
- package/src/commands/liberica/teams/tasks/get.ts +0 -64
- package/src/commands/liberica/teams/tasks/index.ts +0 -19
- package/src/commands/liberica/teams/tasks/list.ts +0 -102
- package/src/commands/liberica/teams/tasks/update.ts +0 -122
- package/src/commands/liberica/teams/work-logs/create.ts +0 -204
- package/src/commands/liberica/teams/work-logs/delete.ts +0 -58
- package/src/commands/liberica/teams/work-logs/get.ts +0 -87
- package/src/commands/liberica/teams/work-logs/index.ts +0 -19
- package/src/commands/liberica/teams/work-logs/list.ts +0 -141
- package/src/commands/liberica/teams/work-logs/update.ts +0 -120
- package/src/commands/liberica/transfer-in-forms/batch-delete.ts +0 -152
- package/src/commands/liberica/transfer-in-forms/batch-review.ts +0 -151
- package/src/commands/liberica/transfer-in-forms/batch-unreview.ts +0 -152
- package/src/commands/liberica/transfer-in-forms/create.ts +0 -179
- package/src/commands/liberica/transfer-in-forms/get.ts +0 -107
- package/src/commands/liberica/transfer-in-forms/index.ts +0 -23
- package/src/commands/liberica/transfer-in-forms/list.ts +0 -97
- package/src/commands/liberica/transfer-in-forms/update.ts +0 -213
- package/src/commands/liberica/transfer-out-forms/batch-delete.ts +0 -83
- package/src/commands/liberica/transfer-out-forms/batch-review.ts +0 -148
- package/src/commands/liberica/transfer-out-forms/batch-unreview.ts +0 -56
- package/src/commands/liberica/transfer-out-forms/create.ts +0 -194
- package/src/commands/liberica/transfer-out-forms/get.ts +0 -114
- package/src/commands/liberica/transfer-out-forms/index.ts +0 -23
- package/src/commands/liberica/transfer-out-forms/list.ts +0 -125
- package/src/commands/liberica/transfer-out-forms/update.ts +0 -197
- package/src/commands/liberica/uoms/create.ts +0 -134
- package/src/commands/liberica/uoms/delete.ts +0 -105
- package/src/commands/liberica/uoms/disable.ts +0 -148
- package/src/commands/liberica/uoms/enable.ts +0 -129
- package/src/commands/liberica/uoms/get.ts +0 -83
- package/src/commands/liberica/uoms/index.ts +0 -23
- package/src/commands/liberica/uoms/list.ts +0 -129
- package/src/commands/liberica/uoms/update.ts +0 -124
- package/src/commands/liberica/users/create.ts +0 -133
- package/src/commands/liberica/users/delete.ts +0 -49
- package/src/commands/liberica/users/disable.ts +0 -41
- package/src/commands/liberica/users/enable.ts +0 -30
- package/src/commands/liberica/users/get.ts +0 -46
- package/src/commands/liberica/users/index.ts +0 -27
- package/src/commands/liberica/users/list.ts +0 -68
- package/src/commands/liberica/users/me.ts +0 -42
- package/src/commands/liberica/users/reset-password.ts +0 -42
- package/src/commands/liberica/users/update.ts +0 -48
- package/src/commands/liberica/warehouses/create.ts +0 -204
- package/src/commands/liberica/warehouses/delete.ts +0 -112
- package/src/commands/liberica/warehouses/disable.ts +0 -174
- package/src/commands/liberica/warehouses/enable.ts +0 -174
- package/src/commands/liberica/warehouses/get.ts +0 -101
- package/src/commands/liberica/warehouses/index.ts +0 -25
- package/src/commands/liberica/warehouses/list.ts +0 -136
- package/src/commands/liberica/warehouses/locations/create.ts +0 -209
- package/src/commands/liberica/warehouses/locations/delete.ts +0 -116
- package/src/commands/liberica/warehouses/locations/disable.ts +0 -174
- package/src/commands/liberica/warehouses/locations/enable.ts +0 -174
- package/src/commands/liberica/warehouses/locations/get.ts +0 -84
- package/src/commands/liberica/warehouses/locations/index.ts +0 -23
- package/src/commands/liberica/warehouses/locations/list.ts +0 -140
- package/src/commands/liberica/warehouses/locations/update.ts +0 -135
- package/src/commands/liberica/warehouses/update.ts +0 -142
- package/src/core/api/client.ts +0 -4443
- package/src/core/auth/token-manager.ts +0 -183
- package/src/core/config/manager.ts +0 -164
- package/src/index.ts +0 -35
- package/src/types/calendar.ts +0 -36
- package/src/types/client-contact.ts +0 -78
- package/src/types/client.ts +0 -115
- package/src/types/currency.ts +0 -90
- package/src/types/dict.ts +0 -121
- package/src/types/employee.ts +0 -102
- package/src/types/index.ts +0 -93
- package/src/types/location.ts +0 -66
- package/src/types/material.ts +0 -61
- package/src/types/mould-stock-in.ts +0 -82
- package/src/types/mould.ts +0 -74
- package/src/types/operation.ts +0 -72
- package/src/types/org.ts +0 -25
- package/src/types/position.ts +0 -24
- package/src/types/stock.ts +0 -161
- package/src/types/supplier-contact.ts +0 -78
- package/src/types/supplier.ts +0 -66
- package/src/types/team-issue.ts +0 -94
- package/src/types/team-project.ts +0 -74
- package/src/types/team-task.ts +0 -98
- package/src/types/team-work-log.ts +0 -87
- package/src/types/transfer-in-form.ts +0 -265
- package/src/types/transfer-out-form.ts +0 -290
- package/src/types/uom.ts +0 -60
- package/src/types/user.ts +0 -64
- package/src/types/warehouse.ts +0 -82
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
# barista liberica transfer-out-forms list
|
|
2
|
-
|
|
3
|
-
Paginated query of transfer-out form line items.
|
|
4
|
-
|
|
5
|
-
## 2.1 Command Metadata
|
|
6
|
-
|
|
7
|
-
| Field | Value |
|
|
8
|
-
|------|-----|
|
|
9
|
-
| Full Command | `barista liberica transfer-out-forms list` |
|
|
10
|
-
| Description | Paginated query of transfer-out form line items |
|
|
11
|
-
| HTTP Method | GET |
|
|
12
|
-
| Requires Authentication | Yes |
|
|
13
|
-
| Supports Dry-Run | No |
|
|
14
|
-
|
|
15
|
-
## 2.2 Backend API Reference
|
|
16
|
-
|
|
17
|
-
### Controller Location
|
|
18
|
-
```
|
|
19
|
-
coffee-liberica-end/
|
|
20
|
-
└── facade/liberica-facade-enterprise/
|
|
21
|
-
└── src/main/java/com/newpeak/liberica/facade/enterprise/controller/stock/
|
|
22
|
-
└── EnterpriseTransferOutFormController.java
|
|
23
|
-
└── page(@GetResource(path = "/page"))
|
|
24
|
-
└── public ResponseData<PageResult<TransferOutFormCompactResponse>> page(
|
|
25
|
-
@RequestHeader("X-TENANT-ID") Long tenantId,
|
|
26
|
-
@ParameterObject TransferOutFormCompactQueryRequest transferOutFormCompactQueryRequest
|
|
27
|
-
)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Request DTO Location
|
|
31
|
-
```
|
|
32
|
-
coffee-liberica-end/
|
|
33
|
-
└── business/liberica-business-stock/stock-api/
|
|
34
|
-
└── src/main/java/com/newpeak/liberica/stock/api/pojo/request/
|
|
35
|
-
└── TransferOutFormCompactQueryRequest.java
|
|
36
|
-
├── current: Long (page number, 0-based)
|
|
37
|
-
├── size: Long (page size)
|
|
38
|
-
├── transferOutFormCode: String
|
|
39
|
-
├── warehouseCode: String
|
|
40
|
-
├── materialCode: String
|
|
41
|
-
├── materialName: String
|
|
42
|
-
├── stockDate: Date
|
|
43
|
-
├── stockDateCriteria: DateRange
|
|
44
|
-
├── transferOutType: String
|
|
45
|
-
├── reviewFlag: String
|
|
46
|
-
├── reviewerName: String
|
|
47
|
-
├── followerName: String
|
|
48
|
-
└── sourceCode: String
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Response DTO Location
|
|
52
|
-
```
|
|
53
|
-
coffee-liberica-end/
|
|
54
|
-
└── business/liberica-business-stock/stock-api/
|
|
55
|
-
└── src/main/java/com/newpeak/liberica/stock/api/pojo/response/
|
|
56
|
-
└── TransferOutFormCompactResponse.java
|
|
57
|
-
├── transferOutFormItemId: Long
|
|
58
|
-
├── transferOutFormItemCode: String
|
|
59
|
-
├── transferOutFormId: Long
|
|
60
|
-
├── transferOutFormCode: String
|
|
61
|
-
├── warehouseCode: String
|
|
62
|
-
├── materialCode: String
|
|
63
|
-
├── materialName: String
|
|
64
|
-
├── materialType: String
|
|
65
|
-
├── materialUomCode: String
|
|
66
|
-
├── formQuantity: BigDecimal
|
|
67
|
-
├── formMaterialUomCode: String
|
|
68
|
-
├── stockQuantity: BigDecimal
|
|
69
|
-
├── unitPrice: BigDecimal
|
|
70
|
-
├── stockAmount: BigDecimal
|
|
71
|
-
├── stockDate: Date
|
|
72
|
-
├── transferOutType: String
|
|
73
|
-
├── reviewFlag: String
|
|
74
|
-
├── reviewerName: String
|
|
75
|
-
├── followerName: String
|
|
76
|
-
├── createTime: String
|
|
77
|
-
└── updateTime: String
|
|
78
|
-
```
|
|
79
|
-
|
|
80
|
-
### Pagination Wrapper
|
|
81
|
-
```
|
|
82
|
-
cn.stylefeng.roses.kernel.db.api.pojo.page.PageResult
|
|
83
|
-
├── total: long
|
|
84
|
-
├── size: long
|
|
85
|
-
├── current: long
|
|
86
|
-
└── records: List<TransferOutFormCompactResponse>
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
## 2.3 CLI Parameter Design
|
|
90
|
-
|
|
91
|
-
### Command Structure
|
|
92
|
-
```
|
|
93
|
-
barista liberica transfer-out-forms list [options]
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
### Global Options
|
|
97
|
-
| Option | Type | Description |
|
|
98
|
-
|------|------|------|
|
|
99
|
-
| `--env` | string | Target environment (dev\|test\|prod-cn\|prod-jp) |
|
|
100
|
-
| `--tenant` | string | Tenant code |
|
|
101
|
-
| `--json` | boolean | JSON output |
|
|
102
|
-
|
|
103
|
-
### Command Options
|
|
104
|
-
| Option | Short | Type | Required | Default | Description | Maps to DTO Field |
|
|
105
|
-
|------|--------|------|------|--------|------|-------------|
|
|
106
|
-
| --page | -p | number | No | 1 | Page number (1-based) | current |
|
|
107
|
-
| --size | -s | number | No | 20 | Page size | size |
|
|
108
|
-
| --code | -c | string | No | - | Transfer-out form code | transferOutFormCode |
|
|
109
|
-
| --warehouse-code | -w | string | No | - | Warehouse code | warehouseCode |
|
|
110
|
-
| --material-code | -m | string | No | - | Material code | materialCode |
|
|
111
|
-
| --material-name | -n | string | No | - | Material name (fuzzy) | materialName |
|
|
112
|
-
| --review-flag | -r | string | No | - | Review flag | reviewFlag |
|
|
113
|
-
| --stock-date-start | — | string | No | - | Stock date start (YYYY-MM-DD) | stockDateCriteria.start |
|
|
114
|
-
| --stock-date-end | — | string | No | - | Stock date end (YYYY-MM-DD) | stockDateCriteria.end |
|
|
115
|
-
| --follower-name | -f | string | No | - | Follower name | followerName |
|
|
116
|
-
|
|
117
|
-
## 2.4 Field Mapping Table
|
|
118
|
-
|
|
119
|
-
| CLI Parameter | DTO Field | Type Conversion | Validation Rule |
|
|
120
|
-
|---------|---------|----------|----------|
|
|
121
|
-
| --page / -p | current | number→Long | >= 1, CLI page 1 maps to API page 0 |
|
|
122
|
-
| --size / -s | size | number→Long | 1-100 |
|
|
123
|
-
| --code / -c | transferOutFormCode | Direct | max=255 |
|
|
124
|
-
| --warehouse-code / -w | warehouseCode | Direct | max=255 |
|
|
125
|
-
| --material-code / -m | materialCode | Direct | max=255 |
|
|
126
|
-
| --material-name / -n | materialName | Direct | fuzzy match |
|
|
127
|
-
| --review-flag / -r | reviewFlag | Direct | enum validation |
|
|
128
|
-
| --stock-date-start | stockDateCriteria.start | string→Date | yyyy-MM-dd |
|
|
129
|
-
| --stock-date-end | stockDateCriteria.end | string→Date | yyyy-MM-dd |
|
|
130
|
-
| --follower-name / -f | followerName | Direct | max=255 |
|
|
131
|
-
|
|
132
|
-
## 2.5 Error Code Reference
|
|
133
|
-
|
|
134
|
-
### ExceptionEnum Location
|
|
135
|
-
```
|
|
136
|
-
coffee-liberica-end/
|
|
137
|
-
└── business/liberica-business-stock/stock-api/
|
|
138
|
-
└── src/main/java/com/newpeak/liberica/stock/api/exception/enums/
|
|
139
|
-
└── TransferOutFormExceptionEnum.java
|
|
140
|
-
├── TRANSFER_OUT_FORM_NOT_EXIST("01001190001", "租户出库单不存在")
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Known Error Codes
|
|
144
|
-
| Error Code | Error Message | Trigger Condition |
|
|
145
|
-
|--------|----------|----------|
|
|
146
|
-
| 01001190001 | Transfer-out form does not exist | Detail with non-existent ID |
|
|
147
|
-
|
|
148
|
-
## 2.6 Permission Check
|
|
149
|
-
|
|
150
|
-
| Check Item | Location | Description |
|
|
151
|
-
|--------|------|------|
|
|
152
|
-
| Annotation | `@GetResource(path = "/page")` | No requiredPermission |
|
|
153
|
-
|
|
154
|
-
## 2.7 Implementation Notes
|
|
155
|
-
|
|
156
|
-
1. **Pagination conversion**: CLI page is 1-based, API page is 0-based. `apiPage = cliPage - 1`.
|
|
157
|
-
2. **No X-TENANT-ID header**: Tenant is extracted from JWT token.
|
|
158
|
-
3. **BigInteger ID handling**: All ID fields (`transferOutFormId`, `transferOutFormItemId`) must be parsed as `string` in TypeScript to avoid precision loss.
|
|
159
|
-
4. **Date range**: When only start or only end is provided, send it as a single `stockDate` instead of `stockDateCriteria`.
|
|
160
|
-
5. **Output format**: Table output with pagination summary at the bottom.
|
|
161
|
-
|
|
162
|
-
## 2.8 Example Usage
|
|
163
|
-
|
|
164
|
-
```bash
|
|
165
|
-
# Default pagination
|
|
166
|
-
barista liberica transfer-out-forms list
|
|
167
|
-
|
|
168
|
-
# Page 2 with 50 items per page
|
|
169
|
-
barista liberica transfer-out-forms list --page 2 --size 50
|
|
170
|
-
|
|
171
|
-
# Filter by warehouse and review flag
|
|
172
|
-
barista liberica transfer-out-forms list --warehouse-code WH001 --review-flag reviewed
|
|
173
|
-
|
|
174
|
-
# Filter by date range
|
|
175
|
-
barista liberica transfer-out-forms list --stock-date-start 2025-01-01 --stock-date-end 2025-01-31
|
|
176
|
-
|
|
177
|
-
# JSON output
|
|
178
|
-
barista liberica transfer-out-forms list --page 1 --size 10 --json
|
|
179
|
-
```
|
|
180
|
-
|
|
181
|
-
## 2.9 Output Examples
|
|
182
|
-
|
|
183
|
-
### Table Output
|
|
184
|
-
```
|
|
185
|
-
┌─────────────┬─────────────────────┬──────────────┬──────────────────┬───────────────┬─────────────┬──────────────┐
|
|
186
|
-
│ Item ID │ Form Code │ Warehouse │ Material Name │ Stock Qty │ Review Flag │ Follower │
|
|
187
|
-
├─────────────┼─────────────────────┼──────────────┼──────────────────┼───────────────┼─────────────┼──────────────┤
|
|
188
|
-
│ 1000001 │ TO-2025-0001 │ WH001 │ Coffee Beans A │ 500.00 │ reviewed │ Zhang San │
|
|
189
|
-
│ 1000002 │ TO-2025-0001 │ WH001 │ Coffee Beans B │ 300.00 │ reviewed │ Zhang San │
|
|
190
|
-
│ 1000003 │ TO-2025-0002 │ WH002 │ Filter Paper │ 1000.00 │ pending │ Li Si │
|
|
191
|
-
└─────────────┴─────────────────────┴──────────────┴──────────────────┴───────────────┴─────────────┴──────────────┘
|
|
192
|
-
Total: 3 | Page 1/1 | Size 20
|
|
193
|
-
```
|
|
194
|
-
|
|
195
|
-
### JSON Output
|
|
196
|
-
```json
|
|
197
|
-
{
|
|
198
|
-
"success": true,
|
|
199
|
-
"data": {
|
|
200
|
-
"items": [
|
|
201
|
-
{
|
|
202
|
-
"transferOutFormItemId": "1000001",
|
|
203
|
-
"transferOutFormCode": "TO-2025-0001",
|
|
204
|
-
"warehouseCode": "WH001",
|
|
205
|
-
"materialName": "Coffee Beans A",
|
|
206
|
-
"stockQuantity": "500.00",
|
|
207
|
-
"materialUomCode": "kg",
|
|
208
|
-
"reviewFlag": "reviewed",
|
|
209
|
-
"followerName": "Zhang San",
|
|
210
|
-
"stockDate": "2025-05-15"
|
|
211
|
-
}
|
|
212
|
-
],
|
|
213
|
-
"pagination": {
|
|
214
|
-
"page": 1,
|
|
215
|
-
"size": 20,
|
|
216
|
-
"total": 3
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
```
|
|
221
|
-
|
|
222
|
-
## 2.10 API Path
|
|
223
|
-
|
|
224
|
-
```
|
|
225
|
-
GET /api/enterprise/stock/transferOut/page?pageNo=0&pageSize=20
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
**Headers:**
|
|
229
|
-
```
|
|
230
|
-
Authorization: <token> (No "Bearer " prefix)
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
**Note**: Do NOT include `X-TENANT-ID` header. Tenant is extracted from JWT token.
|
|
@@ -1,286 +0,0 @@
|
|
|
1
|
-
# barista liberica transfer-out-forms update
|
|
2
|
-
|
|
3
|
-
Update an existing transfer-out form.
|
|
4
|
-
|
|
5
|
-
## 2.1 Command Metadata
|
|
6
|
-
|
|
7
|
-
| Field | Value |
|
|
8
|
-
|------|-----|
|
|
9
|
-
| Full Command | `barista liberica transfer-out-forms update <id>` |
|
|
10
|
-
| Description | Update an existing transfer-out form |
|
|
11
|
-
| HTTP Method | POST |
|
|
12
|
-
| Requires Authentication | Yes |
|
|
13
|
-
| Supports Dry-Run | Yes |
|
|
14
|
-
|
|
15
|
-
## 2.2 Backend API Reference
|
|
16
|
-
|
|
17
|
-
### Controller Location
|
|
18
|
-
```
|
|
19
|
-
coffee-liberica-end/
|
|
20
|
-
└── facade/liberica-facade-enterprise/
|
|
21
|
-
└── src/main/java/com/newpeak/liberica/facade/enterprise/controller/stock/
|
|
22
|
-
└── EnterpriseTransferOutFormController.java
|
|
23
|
-
└── edit(@PostResource(path = "/edit", requiredPermission = true, requirePermissionCode = TransferOutFormPermissionConstants.EDIT_TRANSFER_OUT_FORM))
|
|
24
|
-
└── public ResponseData<? extends TransferOutFormResponse> edit(
|
|
25
|
-
@RequestHeader("X-TENANT-ID") Long tenantId,
|
|
26
|
-
@RequestBody @Validated(BaseRequest.edit.class) TransferOutFormRequest transferOutFormRequest
|
|
27
|
-
)
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
### Request DTO Location
|
|
31
|
-
```
|
|
32
|
-
coffee-liberica-end/
|
|
33
|
-
└── business/liberica-business-stock/stock-api/
|
|
34
|
-
└── src/main/java/com/newpeak/liberica/stock/api/pojo/request/
|
|
35
|
-
└── TransferOutFormRequest.java
|
|
36
|
-
├── transferOutFormId: Long (@NotNull on edit)
|
|
37
|
-
├── warehouseCode: String (@NotBlank on edit, max=255)
|
|
38
|
-
├── stockDate: Date (@NotNull on edit)
|
|
39
|
-
├── transferOutType: String (@NotBlank on edit, max=255)
|
|
40
|
-
├── transferOutFormCode: String (max=255)
|
|
41
|
-
├── follower: String (max=255)
|
|
42
|
-
├── followerName: String (max=255)
|
|
43
|
-
├── remark: String (max=255)
|
|
44
|
-
├── itemList: List<TransferOutFormItemRequest> (@NotEmpty on edit)
|
|
45
|
-
└── lotList: List<TransferOutFormLotRequest>
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
**TransferOutFormItemRequest (required fields on edit):**
|
|
49
|
-
```
|
|
50
|
-
├── materialCode: String (@NotBlank, max=255)
|
|
51
|
-
├── materialUomCode: String (@NotBlank, max=255)
|
|
52
|
-
├── formQuantity: BigDecimal (@NotNull)
|
|
53
|
-
├── formMaterialUomCode: String (@NotBlank, max=255)
|
|
54
|
-
├── stockQuantity: BigDecimal (@NotNull)
|
|
55
|
-
├── transferOutFormItemId: Long (required for existing items)
|
|
56
|
-
├── sourceType: String (max=255)
|
|
57
|
-
├── sourceCode: String (max=255)
|
|
58
|
-
├── materialName: String (max=255)
|
|
59
|
-
├── materialType: String (max=255)
|
|
60
|
-
├── materialCharacteristicCode: String (max=255)
|
|
61
|
-
├── color: String (max=255)
|
|
62
|
-
├── longX: BigDecimal
|
|
63
|
-
├── wideY: BigDecimal
|
|
64
|
-
├── highZ: BigDecimal
|
|
65
|
-
├── lotNoList: List<String>
|
|
66
|
-
├── unitPrice: BigDecimal
|
|
67
|
-
├── localCurrency: String (max=255)
|
|
68
|
-
├── stockAmount: BigDecimal
|
|
69
|
-
└── remark: String (max=255)
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
**TransferOutFormLotRequest (required fields on edit):**
|
|
73
|
-
```
|
|
74
|
-
├── transferOutFormLotId: Long (required for existing lots)
|
|
75
|
-
├── warehouseCode: String (@NotBlank, max=255)
|
|
76
|
-
├── materialCode: String (@NotBlank, max=255)
|
|
77
|
-
├── materialUomCode: String (@NotBlank, max=255)
|
|
78
|
-
├── lotNo: String (max=255)
|
|
79
|
-
├── stockQuantity: BigDecimal (@NotNull)
|
|
80
|
-
├── materialName: String (max=255)
|
|
81
|
-
├── materialType: String (max=255)
|
|
82
|
-
├── materialCharacteristicCode: String (max=255)
|
|
83
|
-
├── color: String (max=255)
|
|
84
|
-
├── longX: BigDecimal
|
|
85
|
-
├── wideY: BigDecimal
|
|
86
|
-
├── highZ: BigDecimal
|
|
87
|
-
├── unitPrice: BigDecimal
|
|
88
|
-
├── localCurrency: String (max=255)
|
|
89
|
-
├── stockAmount: BigDecimal
|
|
90
|
-
└── remark: String (max=255)
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Response DTO Location
|
|
94
|
-
```
|
|
95
|
-
coffee-liberica-end/
|
|
96
|
-
└── business/liberica-business-stock/stock-api/
|
|
97
|
-
└── src/main/java/com/newpeak/liberica/stock/api/pojo/response/
|
|
98
|
-
└── TransferOutFormResponse.java
|
|
99
|
-
├── transferOutFormId: Long
|
|
100
|
-
├── transferOutFormCode: String
|
|
101
|
-
├── warehouseCode: String
|
|
102
|
-
├── stockDate: Date
|
|
103
|
-
├── transferOutType: String
|
|
104
|
-
├── follower: String
|
|
105
|
-
├── followerName: String
|
|
106
|
-
├── reviewFlag: String
|
|
107
|
-
├── reviewer: String
|
|
108
|
-
├── reviewerName: String
|
|
109
|
-
├── reviewTime: Instant
|
|
110
|
-
├── remark: String
|
|
111
|
-
├── enough: boolean
|
|
112
|
-
├── itemList: List<TransferOutFormItemResponse>
|
|
113
|
-
├── lotList: List<TransferOutFormLotResponse>
|
|
114
|
-
├── createTime: String
|
|
115
|
-
└── updateTime: String
|
|
116
|
-
```
|
|
117
|
-
|
|
118
|
-
## 2.3 CLI Parameter Design
|
|
119
|
-
|
|
120
|
-
### Command Structure
|
|
121
|
-
```
|
|
122
|
-
barista liberica transfer-out-forms update <id> [options]
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### Positional Arguments
|
|
126
|
-
| Argument | Type | Required | Description |
|
|
127
|
-
|------|------|------|------|
|
|
128
|
-
| id | string | Yes | Transfer-out form ID (transferOutFormId) |
|
|
129
|
-
|
|
130
|
-
### Global Options
|
|
131
|
-
| Option | Type | Description |
|
|
132
|
-
|------|------|------|
|
|
133
|
-
| `--env` | string | Target environment (dev\|test\|prod-cn\|prod-jp) |
|
|
134
|
-
| `--tenant` | string | Tenant code |
|
|
135
|
-
| `--dry-run` | boolean | Preview mode (no actual API call) |
|
|
136
|
-
| `--json` | boolean | JSON output |
|
|
137
|
-
|
|
138
|
-
### Command Options
|
|
139
|
-
| Option | Short | Type | Required | Default | Description | Maps to DTO Field |
|
|
140
|
-
|------|--------|------|------|--------|------|-------------|
|
|
141
|
-
| --warehouse-code | -w | string | Yes | - | Warehouse code | warehouseCode |
|
|
142
|
-
| --stock-date | -d | string | Yes | - | Stock date (YYYY-MM-DD) | stockDate |
|
|
143
|
-
| --transfer-out-type | -t | string | Yes | - | Transfer-out type | transferOutType |
|
|
144
|
-
| --code | -c | string | No | - | Transfer-out form code | transferOutFormCode |
|
|
145
|
-
| --follower | -f | string | No | - | Follower code | follower |
|
|
146
|
-
| --follower-name | -n | string | No | - | Follower name | followerName |
|
|
147
|
-
| --remark | -r | string | No | - | Remark | remark |
|
|
148
|
-
| --items | -i | string | Yes | - | Item list as JSON array | itemList |
|
|
149
|
-
| --lots | -l | string | No | - | Lot list as JSON array | lotList |
|
|
150
|
-
|
|
151
|
-
## 2.4 Field Mapping Table
|
|
152
|
-
|
|
153
|
-
| CLI Parameter | DTO Field | Type Conversion | Validation Rule |
|
|
154
|
-
|---------|---------|----------|----------|
|
|
155
|
-
| <id> (positional) | transferOutFormId | string→Long | @NotNull |
|
|
156
|
-
| --warehouse-code / -w | warehouseCode | Direct | @NotBlank, max=255 |
|
|
157
|
-
| --stock-date / -d | stockDate | string→Date | @NotNull, yyyy-MM-dd |
|
|
158
|
-
| --transfer-out-type / -t | transferOutType | Direct | @NotBlank, max=255 |
|
|
159
|
-
| --code / -c | transferOutFormCode | Direct | max=255 |
|
|
160
|
-
| --follower / -f | follower | Direct | max=255 |
|
|
161
|
-
| --follower-name / -n | followerName | Direct | max=255 |
|
|
162
|
-
| --remark / -r | remark | Direct | max=255 |
|
|
163
|
-
| --items / -i | itemList | string→JSON Array | @NotEmpty |
|
|
164
|
-
| --lots / -l | lotList | string→JSON Array | - |
|
|
165
|
-
|
|
166
|
-
## 2.5 Error Code Reference
|
|
167
|
-
|
|
168
|
-
### ExceptionEnum Location
|
|
169
|
-
```
|
|
170
|
-
coffee-liberica-end/
|
|
171
|
-
└── business/liberica-business-stock/stock-api/
|
|
172
|
-
└── src/main/java/com/newpeak/liberica/stock/api/exception/enums/
|
|
173
|
-
└── TransferOutFormExceptionEnum.java
|
|
174
|
-
├── TRANSFER_OUT_FORM_NOT_EXIST("01001190001", "租户出库单不存在")
|
|
175
|
-
```
|
|
176
|
-
|
|
177
|
-
### Known Error Codes
|
|
178
|
-
| Error Code | Error Message | Trigger Condition |
|
|
179
|
-
|--------|----------|----------|
|
|
180
|
-
| 01001190001 | Transfer-out form does not exist | Update with non-existent ID |
|
|
181
|
-
|
|
182
|
-
## 2.6 Permission Check
|
|
183
|
-
|
|
184
|
-
| Check Item | Location | Description |
|
|
185
|
-
|--------|------|------|
|
|
186
|
-
| PermissionConstants | `TransferOutFormPermissionConstants.EDIT_TRANSFER_OUT_FORM` | Controller layer `@PostResource(requirePermissionCode = "EDIT_TRANSFER_OUT_FORM")` |
|
|
187
|
-
|
|
188
|
-
## 2.7 Implementation Notes
|
|
189
|
-
|
|
190
|
-
1. **Required fields**: `id` (positional), `--warehouse-code`, `--stock-date`, `--transfer-out-type`, and `--items` must be provided.
|
|
191
|
-
2. **Item ID handling**: Existing items must include `transferOutFormItemId` in the JSON array. New items should omit this field.
|
|
192
|
-
3. **Lot ID handling**: Existing lots must include `transferOutFormLotId` in the JSON array. New lots should omit this field.
|
|
193
|
-
4. **Dry-run support**: Use `--dry-run` to preview the request body without calling the API.
|
|
194
|
-
5. **BigInteger ID handling**: `transferOutFormId` and nested IDs must be parsed as `string` in TypeScript to avoid precision loss.
|
|
195
|
-
6. **Pre-population**: For CLI convenience, consider fetching the current form detail first and merging unchanged fields with the provided options.
|
|
196
|
-
|
|
197
|
-
## 2.8 Example Usage
|
|
198
|
-
|
|
199
|
-
```bash
|
|
200
|
-
# Update with minimal required fields
|
|
201
|
-
barista liberica transfer-out-forms update 123456789 \
|
|
202
|
-
--warehouse-code WH001 \
|
|
203
|
-
--stock-date 2025-05-15 \
|
|
204
|
-
--transfer-out-type adjustment \
|
|
205
|
-
--items '[{"transferOutFormItemId":"1000001","materialCode":"MAT001","materialUomCode":"kg","formQuantity":600,"formMaterialUomCode":"kg","stockQuantity":600}]'
|
|
206
|
-
|
|
207
|
-
# Update with all options
|
|
208
|
-
barista liberica transfer-out-forms update 123456789 \
|
|
209
|
-
--warehouse-code WH001 \
|
|
210
|
-
--stock-date 2025-05-15 \
|
|
211
|
-
--transfer-out-type adjustment \
|
|
212
|
-
--code "TO-2025-0001" \
|
|
213
|
-
--follower "EMP001" \
|
|
214
|
-
--follower-name "Zhang San" \
|
|
215
|
-
--remark "Updated adjustment" \
|
|
216
|
-
--items '[{"transferOutFormItemId":"1000001","materialCode":"MAT001","materialName":"Coffee Beans A","materialUomCode":"kg","formQuantity":600,"formMaterialUomCode":"kg","stockQuantity":600,"unitPrice":50,"stockAmount":30000}]' \
|
|
217
|
-
--lots '[{"transferOutFormLotId":"2000001","warehouseCode":"WH001","materialCode":"MAT001","materialUomCode":"kg","lotNo":"LOT202501","stockQuantity":600}]'
|
|
218
|
-
|
|
219
|
-
# Dry-run preview
|
|
220
|
-
barista liberica transfer-out-forms update 123456789 \
|
|
221
|
-
--warehouse-code WH001 \
|
|
222
|
-
--stock-date 2025-05-15 \
|
|
223
|
-
--transfer-out-type adjustment \
|
|
224
|
-
--items '[...]' \
|
|
225
|
-
--dry-run
|
|
226
|
-
|
|
227
|
-
# JSON output
|
|
228
|
-
barista liberica transfer-out-forms update 123456789 \
|
|
229
|
-
--warehouse-code WH001 \
|
|
230
|
-
--stock-date 2025-05-15 \
|
|
231
|
-
--transfer-out-type adjustment \
|
|
232
|
-
--items '[...]' \
|
|
233
|
-
--json
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
## 2.9 Request Body Structure
|
|
237
|
-
|
|
238
|
-
```json
|
|
239
|
-
{
|
|
240
|
-
"transferOutFormId": 123456789,
|
|
241
|
-
"warehouseCode": "WH001",
|
|
242
|
-
"stockDate": "2025-05-15",
|
|
243
|
-
"transferOutType": "adjustment",
|
|
244
|
-
"transferOutFormCode": "TO-2025-0001",
|
|
245
|
-
"follower": "EMP001",
|
|
246
|
-
"followerName": "Zhang San",
|
|
247
|
-
"remark": "Updated adjustment",
|
|
248
|
-
"itemList": [
|
|
249
|
-
{
|
|
250
|
-
"transferOutFormItemId": 1000001,
|
|
251
|
-
"materialCode": "MAT001",
|
|
252
|
-
"materialName": "Coffee Beans A",
|
|
253
|
-
"materialUomCode": "kg",
|
|
254
|
-
"formQuantity": 600,
|
|
255
|
-
"formMaterialUomCode": "kg",
|
|
256
|
-
"stockQuantity": 600,
|
|
257
|
-
"unitPrice": 50,
|
|
258
|
-
"stockAmount": 30000
|
|
259
|
-
}
|
|
260
|
-
],
|
|
261
|
-
"lotList": [
|
|
262
|
-
{
|
|
263
|
-
"transferOutFormLotId": 2000001,
|
|
264
|
-
"warehouseCode": "WH001",
|
|
265
|
-
"materialCode": "MAT001",
|
|
266
|
-
"materialUomCode": "kg",
|
|
267
|
-
"lotNo": "LOT202501",
|
|
268
|
-
"stockQuantity": 600
|
|
269
|
-
}
|
|
270
|
-
]
|
|
271
|
-
}
|
|
272
|
-
```
|
|
273
|
-
|
|
274
|
-
## 2.10 API Path
|
|
275
|
-
|
|
276
|
-
```
|
|
277
|
-
POST /api/enterprise/stock/transferOut/edit
|
|
278
|
-
```
|
|
279
|
-
|
|
280
|
-
**Headers:**
|
|
281
|
-
```
|
|
282
|
-
Authorization: <token> (No "Bearer " prefix)
|
|
283
|
-
Content-Type: application/json
|
|
284
|
-
```
|
|
285
|
-
|
|
286
|
-
**Note**: Do NOT include `X-TENANT-ID` header. Tenant is extracted from JWT token.
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
# barista liberica uoms create
|
|
2
|
-
|
|
3
|
-
创建新的计量单位。
|
|
4
|
-
|
|
5
|
-
## 2.1 命令元数据
|
|
6
|
-
|
|
7
|
-
| 字段 | 值 |
|
|
8
|
-
|------|-----|
|
|
9
|
-
| 完整命令 | `barista liberica uoms create` |
|
|
10
|
-
| 功能描述 | 创建新的计量单位 |
|
|
11
|
-
| HTTP方法 | POST |
|
|
12
|
-
| 是否需要认证 | ✅ 是 |
|
|
13
|
-
| 是否支持dry-run | ✅ 是 |
|
|
14
|
-
|
|
15
|
-
## 2.2 后端接口引用
|
|
16
|
-
|
|
17
|
-
### Controller位置
|
|
18
|
-
```
|
|
19
|
-
coffee-liberica-end/
|
|
20
|
-
└── facade/liberica-facade-enterprise/
|
|
21
|
-
└── src/main/java/com/newpeak/liberica/facade/enterprise/controller/sales/
|
|
22
|
-
└── MasterUomController.java
|
|
23
|
-
└── createUom(@PostResource(path = "/add"))
|
|
24
|
-
└── public ResponseData<MasterUomResponse> createUom(
|
|
25
|
-
@RequestBody @Validated MasterUomRequest request
|
|
26
|
-
)
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
### Request DTO位置
|
|
30
|
-
```
|
|
31
|
-
coffee-liberica-end/
|
|
32
|
-
└── business/liberica-business-uom/uom-api/src/main/java/com/newpeak/liberica/uom/api/pojo/request/MasterUomRequest.java
|
|
33
|
-
├── uomCode: String (@NotBlank)
|
|
34
|
-
├── uomName: String (@NotBlank)
|
|
35
|
-
├── uomFractionPlaces: Integer (default: 2)
|
|
36
|
-
└── remark: String (optional)
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### Response DTO位置
|
|
40
|
-
```
|
|
41
|
-
coffee-liberica-end/
|
|
42
|
-
└── business/liberica-business-uom/uom-api/src/main/java/com/newpeak/liberica/uom/api/pojo/response/MasterUomResponse.java
|
|
43
|
-
├── uomId: String
|
|
44
|
-
├── uomCode: String
|
|
45
|
-
├── uomName: String
|
|
46
|
-
├── uomFractionPlaces: Integer
|
|
47
|
-
├── statusFlag: Integer (1=启用)
|
|
48
|
-
├── remark: String
|
|
49
|
-
├── createTime: String
|
|
50
|
-
└── updateTime: String
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## 2.3 CLI参数设计
|
|
54
|
-
|
|
55
|
-
### 命令结构
|
|
56
|
-
```
|
|
57
|
-
barista liberica uoms create [options]
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
### 全局选项
|
|
61
|
-
| 选项 | 类型 | 说明 |
|
|
62
|
-
|------|------|------|
|
|
63
|
-
| `--env` | string | 目标环境(dev\|test\|prod-cn\|prod-jp) |
|
|
64
|
-
| `--tenant` | string | 租户代码 |
|
|
65
|
-
| `--dry-run` | boolean | 预览模式 |
|
|
66
|
-
| `--json` | boolean | JSON输出 |
|
|
67
|
-
|
|
68
|
-
### 命令选项
|
|
69
|
-
| 选项 | 短选项 | 类型 | 必填 | 默认值 | 说明 | 对应DTO字段 |
|
|
70
|
-
|------|--------|------|------|--------|------|-------------|
|
|
71
|
-
| --code | -c | string | ✅ | - | 计量单位编码 | uomCode |
|
|
72
|
-
| --name | -n | string | ✅ | - | 计量单位名称 | uomName |
|
|
73
|
-
| --fraction-places | -f | number | ⬜ | 2 | 小数位数 | uomFractionPlaces |
|
|
74
|
-
| --remark | -r | string | ⬜ | - | 备注 | remark |
|
|
75
|
-
|
|
76
|
-
## 2.4 字段映射表
|
|
77
|
-
|
|
78
|
-
| CLI参数 | DTO字段 | 类型转换 | 验证规则 |
|
|
79
|
-
|---------|---------|----------|----------|
|
|
80
|
-
| --code / -c | uomCode | string→String | @NotBlank, max=255 |
|
|
81
|
-
| --name / -n | uomName | string→String | @NotBlank, max=255 |
|
|
82
|
-
| --fraction-places / -f | uomFractionPlaces | number→Integer | >= 0, <= 10 |
|
|
83
|
-
| --remark / -r | remark | string→String | max=500 |
|
|
84
|
-
|
|
85
|
-
## 2.5 错误码引用
|
|
86
|
-
|
|
87
|
-
### ExceptionEnum位置
|
|
88
|
-
```
|
|
89
|
-
coffee-liberica-end/
|
|
90
|
-
└── business/liberica-business-uom/uom-api/src/main/java/com/newpeak/liberica/uom/api/exception/enums/MasterUomExceptionEnum.java
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### 已知错误码
|
|
94
|
-
| 错误码 | 错误消息 | 触发条件 |
|
|
95
|
-
|--------|----------|----------|
|
|
96
|
-
| UOM_CODE_DUPLICATE | 计量单位编码重复 | 编码重复 |
|
|
97
|
-
| UOM_CODE_EMPTY | 计量单位编码不能为空 | 编码为空 |
|
|
98
|
-
| UOM_NAME_EMPTY | 计量单位名称不能为空 | 名称为空 |
|
|
99
|
-
|
|
100
|
-
## 2.6 权限检查
|
|
101
|
-
|
|
102
|
-
| 检查项 | 位置 | 说明 |
|
|
103
|
-
|--------|------|------|
|
|
104
|
-
| 注解 | MasterUomController.java | 需要 `master_uom:add` 权限 |
|
|
105
|
-
|
|
106
|
-
## 2.7 实现要点
|
|
107
|
-
|
|
108
|
-
1. **必填参数**:uomCode 和 uomName 为必填参数
|
|
109
|
-
2. **默认值**:fraction-places 默认为 2
|
|
110
|
-
3. **dry-run 支持**:支持 `--dry-run` 预览模式,显示将要创建的UOM信息
|
|
111
|
-
4. **编码唯一性**:后端会校验 uomCode 是否已存在
|
|
112
|
-
5. **状态默认**:新创建UOM默认状态为启用(statusFlag=1)
|
|
113
|
-
6. **API路径**:POST `/api/enterprise/sales/uom/add`
|
|
114
|
-
7. **成功响应**:返回创建的UOM详情,包括生成的 uomId
|
|
115
|
-
|
|
116
|
-
## 2.8 示例用法
|
|
117
|
-
|
|
118
|
-
```bash
|
|
119
|
-
# 创建基本计量单位
|
|
120
|
-
barista liberica uoms create --code "kg" --name "千克"
|
|
121
|
-
barista liberica uoms create -c "kg" -n "千克"
|
|
122
|
-
|
|
123
|
-
# 创建并指定小数位数
|
|
124
|
-
barista liberica uoms create --code "m" --name "米" --fraction-places 3
|
|
125
|
-
barista liberica uoms create -c "m" -n "米" -f 3
|
|
126
|
-
|
|
127
|
-
# 创建并添加备注
|
|
128
|
-
barista liberica uoms create --code "pcs" --name "件" --remark "计量件数"
|
|
129
|
-
barista liberica uoms create -c "pcs" -n "件" -r "计量件数"
|
|
130
|
-
|
|
131
|
-
# 预览模式(dry-run)
|
|
132
|
-
barista liberica uoms create --code "box" --name "箱" --dry-run
|
|
133
|
-
|
|
134
|
-
# JSON 输出
|
|
135
|
-
barista liberica uoms create --code "kg" --name "千克" --json
|
|
136
|
-
```
|