|
| 1 | +<?php |
| 2 | + |
| 3 | +namespace Picqer\Financials\Exact; |
| 4 | + |
| 5 | +/** |
| 6 | + * Class Expenses. |
| 7 | + * |
| 8 | + * @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=ExpenseManagementExpenses |
| 9 | + * |
| 10 | + * @property string $ID Expense ID |
| 11 | + * @property string $ApproverComment Approver comment (alternative field) |
| 12 | + * @property string $Category Category of the expense |
| 13 | + * @property string $CategoryDescription Category description |
| 14 | + * @property string $Claimant User who made the expense |
| 15 | + * @property string $ClaimantFullName Full name of the user who made the expense |
| 16 | + * @property string $Country Country code (3 characters) |
| 17 | + * @property string $Currency Currency code (3 characters) |
| 18 | + * @property string $Description Description of the expense |
| 19 | + * @property string $Distance Distance (for mileage expenses) |
| 20 | + * @property int $Division Division expense belong to |
| 21 | + * @property string $ExpenseDate Date of the expense |
| 22 | + * @property ExpenseLine[] $ExpenseLines Expense lines for Receipt expenses (split amounts) |
| 23 | + * @property int $ExpenseNumber Expense number - auto-generated |
| 24 | + * @property int $ExpenseType Expense type: 1=Receipts, 2=Mileage, 3=Per Diem |
| 25 | + * @property string $ExpenseTypeDescription Expense type description |
| 26 | + * @property int $PaymentMethod Payment method (0:Others , 1=Company Credit Card) |
| 27 | + * @property string $PerDiemRateAmount Per diem rate amount |
| 28 | + * @property string $Project Project associated with the expense |
| 29 | + * @property string $ProjectDescription Project description |
| 30 | + * @property int $Quantity Quantity |
| 31 | + * @property float $RateFC Rate in foreign currency |
| 32 | + * @property string $Report Associated expense report |
| 33 | + * @property string $ReportDescription Expense report description |
| 34 | + * @property int $Status Status: 1=Not reviewed, 2=Reviewed, 3=Flagged |
| 35 | + * @property string $StatusDescription Status description |
| 36 | + * @property string $SysCreated Created date |
| 37 | + * @property string $SysCreator Creator |
| 38 | + * @property string $SysCreatorFullName Creator full name |
| 39 | + * @property string $SysModified Modified date |
| 40 | + * @property string $SysModifier Modifier |
| 41 | + * @property string $SysModifierFullName Modifier full name |
| 42 | + * @property float $TotalAmountDC Total amount in division currency |
| 43 | + * @property float $TotalAmountFC Total amount in foreign currency |
| 44 | + * @property string $Vendor Vendor name |
| 45 | + * @property Waypoint[] $Waypoints Waypoints for Mileage expenses (route tracking) |
| 46 | + */ |
| 47 | +class Expenses extends Model |
| 48 | +{ |
| 49 | + use Query\Findable; |
| 50 | + use Persistance\Storable; |
| 51 | + |
| 52 | + protected $fillable = [ |
| 53 | + 'ID', |
| 54 | + 'ApproverComment', |
| 55 | + 'Category', |
| 56 | + 'CategoryDescription', |
| 57 | + 'Claimant', |
| 58 | + 'ClaimantFullName', |
| 59 | + 'Country', |
| 60 | + 'Currency', |
| 61 | + 'Description', |
| 62 | + 'Distance', |
| 63 | + 'Division', |
| 64 | + 'ExpenseDate', |
| 65 | + 'ExpenseLines', |
| 66 | + 'ExpenseNumber', |
| 67 | + 'ExpenseType', |
| 68 | + 'ExpenseTypeDescription', |
| 69 | + 'PaymentMethod', |
| 70 | + 'PerDiemRateAmount', |
| 71 | + 'Project', |
| 72 | + 'ProjectDescription', |
| 73 | + 'Quantity', |
| 74 | + 'RateFC', |
| 75 | + 'Report', |
| 76 | + 'ReportDescription', |
| 77 | + 'Status', |
| 78 | + 'StatusDescription', |
| 79 | + 'SysCreated', |
| 80 | + 'SysCreator', |
| 81 | + 'SysCreatorFullName', |
| 82 | + 'SysModified', |
| 83 | + 'SysModifier', |
| 84 | + 'SysModifierFullName', |
| 85 | + 'TotalAmountDC', |
| 86 | + 'TotalAmountFC', |
| 87 | + 'Vendor', |
| 88 | + 'Waypoints', |
| 89 | + ]; |
| 90 | + |
| 91 | + protected $url = 'expensemanagement/Expenses'; |
| 92 | +} |
0 commit comments