https://github.com/simplicitesoftware/module-tutorial
https://github.com/simplicitesoftware/module-tutorial
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/simplicitesoftware/module-tutorial
- Owner: simplicitesoftware
- Created: 2023-12-14T12:06:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-14T12:13:57.000Z (over 2 years ago)
- Last Synced: 2024-12-29T10:44:54.068Z (over 1 year ago)
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

* * *
`Training` module definition
============================
`TrnSupplier` business object definition
----------------------------------------
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `trnSupCode` | char(30) | yes* | yes | | - |
| `trnSupName` | char(100) | yes | yes | | - |
| `trnSupPhone` | phone(100) | | yes | | - |
| `trnSupLogo` | image | | yes | | - |
| `trnSupWebsite` | url(100) | | yes | | - |
`TrnProduct` business object definition
---------------------------------------
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `trnPrdReference` | char(100) | yes* | yes | | - |
| `trnPrdPrice` | float(100, 2) | | yes | | - |
| `trnPrdStock` | int(100) | | yes | | - |
| `trnPrdName` | char(100) | | yes | | - |
| `trnPrdDescription` | html(100) | | yes | | - |
| `trnPrdPicture` | image | | yes | | - |
| `trnPrdSupId` link to **`TrnSupplier`** | id | yes | yes | | - |
| _Ref. `trnPrdSupId.trnSupCode`_ | _char(30)_ | | | | - |
| _Ref. `trnPrdSupId.trnSupName`_ | _char(100)_ | | | | - |
`TrnClient` business object definition
--------------------------------------
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `trnCliFirstName` | char(100) | yes* | yes | | - |
| `trnCliFamilyName` | char(100) | yes* | yes | | - |
| `trnCliMail` | email(100) | | yes | | - |
| `trnCliPhone` | phone(100) | | yes | | - |
| `trnCliAddress` | text(100) | | yes | | - |
`TrnOrder` business object definition
-------------------------------------
### Fields
| Name | Type | Required | Updatable | Personal | Description |
|--------------------------------------------------------------|------------------------------------------|----------|-----------|----------|----------------------------------------------------------------------------------|
| `trnOrdNumber` | char(100) | yes* | yes | | - |
| `trnOrdQuantity` | int(100) | yes | yes | | - |
| `trnOrdDate` | date | yes | yes | | - |
| `trnOrdPrdId` link to **`TrnProduct`** | id | | yes | | - |
| _Ref. `trnOrdPrdId.trnPrdReference`_ | _char(100)_ | | | | - |
| _Ref. `trnOrdPrdId.trnPrdPrice`_ | _float(100, 2)_ | | | | - |
| _Ref. `trnOrdPrdId.trnPrdStock`_ | _int(100)_ | | | | - |
| _Ref. `trnOrdPrdId.trnPrdName`_ | _char(100)_ | | | | - |
| _Ref. `trnOrdPrdId.trnPrdSupId`_ | _id_ | | | | - |
| _Ref. `trnPrdSupId.trnSupCode`_ | _char(30)_ | | | | - |
| _Ref. `trnPrdSupId.trnSupName`_ | _char(100)_ | | | | - |
| `trnOrdCliId` link to **`TrnClient`** | id | | yes | | - |
| _Ref. `trnOrdCliId.trnCliFirstName`_ | _char(100)_ | | | | - |
| _Ref. `trnOrdCliId.trnCliFamilyName`_ | _char(100)_ | | | | - |
| _Ref. `trnOrdCliId.trnCliMail`_ | _email(100)_ | | | | - |
| `trnOrdState` | enum(10) using `TRN_ORD_STATE` list | yes | yes | | - |
### Lists
* `TRN_ORD_STATE`
- `PENDING` Pending
- `CANCELED` Canceled
- `VALIDATED` Validated
- `SENT` Sent