From 29711bb3337f9d3c1b63dbee89c49be4b671593f Mon Sep 17 00:00:00 2001 From: Danny van der Sluijs Date: Tue, 19 Sep 2023 19:41:17 +0200 Subject: [PATCH] feat: Update api using documentation d.d. 2023-09-19 --- src/Picqer/Financials/Exact/Account.php | 4 ++++ src/Picqer/Financials/Exact/AssemblyOrder.php | 2 ++ .../Financials/Exact/BillOfMaterialMaterial.php | 2 ++ src/Picqer/Financials/Exact/Costcenter.php | 2 -- src/Picqer/Financials/Exact/Project.php | 2 ++ src/Picqer/Financials/Exact/PurchaseOrderLine.php | 12 ------------ .../Financials/Exact/ShopOrderMaterialPlan.php | 2 ++ .../Financials/Exact/ShopOrderMaterialPlanDetail.php | 2 ++ src/Picqer/Financials/Exact/StockBatchNumber.php | 4 ++-- src/Picqer/Financials/Exact/StockSerialNumber.php | 4 ++-- src/Picqer/Financials/Exact/SyncAccount.php | 4 ++++ src/Picqer/Financials/Exact/SyncDeleted.php | 2 +- src/Picqer/Financials/Exact/SyncProject.php | 2 ++ .../Financials/Exact/SyncShopOrderMaterialPlan.php | 2 ++ 14 files changed, 27 insertions(+), 19 deletions(-) diff --git a/src/Picqer/Financials/Exact/Account.php b/src/Picqer/Financials/Exact/Account.php index fc8c7758..e8a9218a 100644 --- a/src/Picqer/Financials/Exact/Account.php +++ b/src/Picqer/Financials/Exact/Account.php @@ -17,6 +17,7 @@ * @property string $AddressLine1 Visit address first line * @property string $AddressLine2 Visit address second line * @property string $AddressLine3 Visit address third line + * @property int $AutomaticProcessProposedEntry Automatically create entries for complete entry proposals * @property BankAccount[] $BankAccounts Collection of Bank accounts * @property bool $Blocked Indicates if the account is blocked * @property string $BSN Citizen Service Number for the Netherlands @@ -51,6 +52,7 @@ * @property float $DiscountSales Default discount percentage for sales. This is stored as a fraction. ie 5.5% is stored as .055 * @property int $Division Division code * @property string $Email E-Mail address of the account + * @property bool $EnableSalesPaymentLink Indicates whether payment link is activated for sales * @property string $EndDate Determines in combination with the start date if the account is active. If the current date is > end date the account is inactive * @property string $EORINumber EORI number * @property string $EstablishedDate RegistrationDate @@ -163,6 +165,7 @@ class Account extends Model 'AddressLine1', 'AddressLine2', 'AddressLine3', + 'AutomaticProcessProposedEntry', 'BankAccounts', 'Blocked', 'BSN', @@ -197,6 +200,7 @@ class Account extends Model 'DiscountSales', 'Division', 'Email', + 'EnableSalesPaymentLink', 'EndDate', 'EORINumber', 'EstablishedDate', diff --git a/src/Picqer/Financials/Exact/AssemblyOrder.php b/src/Picqer/Financials/Exact/AssemblyOrder.php index 0ef90342..64fe7ba6 100644 --- a/src/Picqer/Financials/Exact/AssemblyOrder.php +++ b/src/Picqer/Financials/Exact/AssemblyOrder.php @@ -26,6 +26,7 @@ * @property string $StorageLocationCode Storage location code * @property string $StorageLocationDescription Storage location description * @property int $StorageLocationSequenceNumber Sequence number for assembly order (Premium Only) + * @property int $Type Assembly order type: 8060 = Assembly, 8061 = Disassemble * @property string $Unit The standard unit of the assembled item * @property string $UnitCode Code of Unit * @property string $UnitDescription Description of Unit @@ -57,6 +58,7 @@ class AssemblyOrder extends Model 'StorageLocationCode', 'StorageLocationDescription', 'StorageLocationSequenceNumber', + 'Type', 'Unit', 'UnitCode', 'UnitDescription', diff --git a/src/Picqer/Financials/Exact/BillOfMaterialMaterial.php b/src/Picqer/Financials/Exact/BillOfMaterialMaterial.php index c0c8b694..8976a0c2 100644 --- a/src/Picqer/Financials/Exact/BillOfMaterialMaterial.php +++ b/src/Picqer/Financials/Exact/BillOfMaterialMaterial.php @@ -31,6 +31,7 @@ * @property string $PartItemDescription Part item description * @property float $Quantity Quantity of the material that ends up in the produced item * @property float $QuantityBatch Quantity of the material needed to produce the batch including the waste + * @property string $RoutingStepID ID of the routing step * @property string $syscreated Creation date * @property string $syscreator User ID of creator * @property string $sysmodified Modified date @@ -68,6 +69,7 @@ class BillOfMaterialMaterial extends Model 'PartItemDescription', 'Quantity', 'QuantityBatch', + 'RoutingStepID', 'syscreated', 'syscreator', 'sysmodified', diff --git a/src/Picqer/Financials/Exact/Costcenter.php b/src/Picqer/Financials/Exact/Costcenter.php index 7df19507..563949b8 100644 --- a/src/Picqer/Financials/Exact/Costcenter.php +++ b/src/Picqer/Financials/Exact/Costcenter.php @@ -8,7 +8,6 @@ * @see https://start.exactonline.nl/docs/HlpRestAPIResourcesDetails.aspx?name=HRMCostcenters * * @property string $ID Primary key - * @property bool $Active Indicates if the cost center is active: 0 = inactive 1 = active * @property string $Code Code (user-defined ID) * @property string $Created Creation date * @property string $Creator User ID of creator @@ -28,7 +27,6 @@ class Costcenter extends Model protected $fillable = [ 'ID', - 'Active', 'Code', 'Created', 'Creator', diff --git a/src/Picqer/Financials/Exact/Project.php b/src/Picqer/Financials/Exact/Project.php index d4ccb939..2c146a91 100644 --- a/src/Picqer/Financials/Exact/Project.php +++ b/src/Picqer/Financials/Exact/Project.php @@ -13,6 +13,7 @@ * @property string $AccountContact Contact person of Account * @property string $AccountName Name of Account * @property bool $AllowAdditionalInvoicing Indicates if additional invoice is allowed for project + * @property bool $AllowMemberEntryOnly Allow only member to create time or cost entry * @property bool $BlockEntry Block time and cost entries * @property bool $BlockPlanning Block planning and reservations * @property bool $BlockPurchasing Block purchasing @@ -81,6 +82,7 @@ class Project extends Model 'AccountContact', 'AccountName', 'AllowAdditionalInvoicing', + 'AllowMemberEntryOnly', 'BlockEntry', 'BlockPlanning', 'BlockPurchasing', diff --git a/src/Picqer/Financials/Exact/PurchaseOrderLine.php b/src/Picqer/Financials/Exact/PurchaseOrderLine.php index 2fe265be..aa8646d0 100644 --- a/src/Picqer/Financials/Exact/PurchaseOrderLine.php +++ b/src/Picqer/Financials/Exact/PurchaseOrderLine.php @@ -53,13 +53,7 @@ * @property string $SalesOrderLine Sales order line of the sales order that Is linked to a back to back sales order in purchase order. Show NULL if more than one sales order is linked to the purchase order line. * @property int $SalesOrderLineNumber Number of the sales order line. Show NULL if more than one sales order is linked to the purchase order line. * @property int $SalesOrderNumber Number of the sales order. Show NULL if more than one sales order is linked to the purchase order line. - * @property string $ShopOrder Shop order that is linked to the purchase order line. Show NULL if the purchase order line is not linked to any shop order. - * @property string $ShopOrderMaterialPlan Shop order material plan that is linked to the purchase order line. Show NULL if the purchase order line is for purchase subcontract. - * @property int $ShopOrderMaterialPlanLineNumber Number of the shop order material plan line that is linked to the purchase order line. Show NULL if the purchase order line is for purchase subcontract. * @property ShopOrderMaterialPlan[] $ShopOrderMaterialPlans Collection of Shop order Material plans - * @property int $ShopOrderNumber Number of the shop order that is linked to the purchase order line. Show NULL if the purchase order line is not linked to any shop order. - * @property string $ShopOrderRoutingStepPlan Shop order routing step plan that is linked to the purchase order line. Show NULL if the purchase order line is for purchase material. - * @property int $ShopOrderRoutingStepPlanLineNumber Number of the shop order routing step plan line that is linked to the purchase order line. Show NULL if the purchase order line is for purchase material. * @property ShopOrderRoutingStepPlan[] $ShopOrderRoutingStepPlans Collection of Shop order Routing step plans * @property string $SupplierItemCode Code the supplier uses for this item * @property int $SupplierItemCopyRemarks Indicate if the notes content should be copied from SupplierItem's remarks. The default follows the CopyRemarks value from SupplierItem. Values: 0 = Do not copy remark, 1 = Copy remark @@ -123,13 +117,7 @@ class PurchaseOrderLine extends Model 'SalesOrderLine', 'SalesOrderLineNumber', 'SalesOrderNumber', - 'ShopOrder', - 'ShopOrderMaterialPlan', - 'ShopOrderMaterialPlanLineNumber', 'ShopOrderMaterialPlans', - 'ShopOrderNumber', - 'ShopOrderRoutingStepPlan', - 'ShopOrderRoutingStepPlanLineNumber', 'ShopOrderRoutingStepPlans', 'SupplierItemCode', 'SupplierItemCopyRemarks', diff --git a/src/Picqer/Financials/Exact/ShopOrderMaterialPlan.php b/src/Picqer/Financials/Exact/ShopOrderMaterialPlan.php index 6e7d1b3e..952e0160 100644 --- a/src/Picqer/Financials/Exact/ShopOrderMaterialPlan.php +++ b/src/Picqer/Financials/Exact/ShopOrderMaterialPlan.php @@ -30,6 +30,7 @@ * @property float $PlannedPriceFC Planned price of the material * @property float $PlannedQuantity Intended total planned quantity of the material including waste * @property float $PlannedQuantityFactor Intended quantity of the material per unit excluding waste + * @property string $RoutingStepID ID of the routing step. * @property string $ShopOrder Reference to ShopOrders table * @property int $Status Line status * @property string $StatusDescription Description of Status @@ -67,6 +68,7 @@ class ShopOrderMaterialPlan extends Model 'PlannedPriceFC', 'PlannedQuantity', 'PlannedQuantityFactor', + 'RoutingStepID', 'ShopOrder', 'Status', 'StatusDescription', diff --git a/src/Picqer/Financials/Exact/ShopOrderMaterialPlanDetail.php b/src/Picqer/Financials/Exact/ShopOrderMaterialPlanDetail.php index 76f5267a..dbbe262a 100644 --- a/src/Picqer/Financials/Exact/ShopOrderMaterialPlanDetail.php +++ b/src/Picqer/Financials/Exact/ShopOrderMaterialPlanDetail.php @@ -38,6 +38,7 @@ * @property float $PlannedQuantity Intended total planned quantity of the material including waste * @property float $PlannedQuantityFactor Intended quantity of the material per unit excluding waste * @property float $RemainingQuantity Material plan remaining quantity + * @property string $RoutingStepID ID of the routing step. * @property string $ShopOrder Reference to ShopOrders table * @property int $ShopOrderNumber Shop order number * @property int $Status Line status @@ -88,6 +89,7 @@ class ShopOrderMaterialPlanDetail extends Model 'PlannedQuantity', 'PlannedQuantityFactor', 'RemainingQuantity', + 'RoutingStepID', 'ShopOrder', 'ShopOrderNumber', 'Status', diff --git a/src/Picqer/Financials/Exact/StockBatchNumber.php b/src/Picqer/Financials/Exact/StockBatchNumber.php index 5bf34053..82cc1b1c 100644 --- a/src/Picqer/Financials/Exact/StockBatchNumber.php +++ b/src/Picqer/Financials/Exact/StockBatchNumber.php @@ -24,8 +24,8 @@ * @property string $Modified Last modified date * @property string $Modifier User ID of modifier * @property string $ModifierFullName Name of modifier - * @property string $ParentID ID to link part item to assembled item (assembly order only) - * @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used + * @property string $ParentID ID to link part item to assembled item (assembly order and pick order only) + * @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used. * @property float $Quantity Quantity of this batch number entering or leaving inventory * @property string $Remarks Remarks * @property string $SalesOrderLine ID of sales order line diff --git a/src/Picqer/Financials/Exact/StockSerialNumber.php b/src/Picqer/Financials/Exact/StockSerialNumber.php index 0157520d..3781ead7 100644 --- a/src/Picqer/Financials/Exact/StockSerialNumber.php +++ b/src/Picqer/Financials/Exact/StockSerialNumber.php @@ -22,8 +22,8 @@ * @property string $Modified Last modified date * @property string $Modifier User ID of modifier * @property string $ModifierFullName Name of modifier - * @property string $ParentID ID to link part item to assembled item (assembly order only) - * @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used + * @property string $ParentID ID to link part item to assembled item (assembly order and pick order only) + * @property string $PickOrderLine ID of pick order entry in which this serial or batch number was used. * @property string $Remarks Remarks * @property string $SalesOrderLine ID of sales order line * @property string $SalesReturnLine ID of sales return entry in which this serial or batch number was used diff --git a/src/Picqer/Financials/Exact/SyncAccount.php b/src/Picqer/Financials/Exact/SyncAccount.php index c9c1aec0..00f0ccc9 100644 --- a/src/Picqer/Financials/Exact/SyncAccount.php +++ b/src/Picqer/Financials/Exact/SyncAccount.php @@ -17,6 +17,7 @@ * @property string $AddressLine1 Visit address first line * @property string $AddressLine2 Visit address second line * @property string $AddressLine3 Visit address third line + * @property int $AutomaticProcessProposedEntry Automatically create entries for complete entry proposals * @property BankAccount[] $BankAccounts Collection of Bank accounts * @property bool $Blocked Indicates if the account is blocked * @property string $BSN Citizen Service Number for the Netherlands @@ -51,6 +52,7 @@ * @property float $DiscountSales Default discount percentage for sales. This is stored as a fraction. ie 5.5% is stored as .055 * @property int $Division Division code * @property string $Email E-Mail address of the account + * @property bool $EnableSalesPaymentLink Indicates whether payment link is activated for sales * @property string $EndDate Determines in combination with the start date if the account is active. If the current date is > end date the account is inactive * @property string $EORINumber EORI number * @property string $EstablishedDate RegistrationDate @@ -165,6 +167,7 @@ class SyncAccount extends Model 'AddressLine1', 'AddressLine2', 'AddressLine3', + 'AutomaticProcessProposedEntry', 'BankAccounts', 'Blocked', 'BSN', @@ -199,6 +202,7 @@ class SyncAccount extends Model 'DiscountSales', 'Division', 'Email', + 'EnableSalesPaymentLink', 'EndDate', 'EORINumber', 'EstablishedDate', diff --git a/src/Picqer/Financials/Exact/SyncDeleted.php b/src/Picqer/Financials/Exact/SyncDeleted.php index 9c558253..27462399 100644 --- a/src/Picqer/Financials/Exact/SyncDeleted.php +++ b/src/Picqer/Financials/Exact/SyncDeleted.php @@ -12,7 +12,7 @@ * @property string $DeletedDate Deleted date * @property int $Division Division code * @property string $EntityKey Entity key - * @property int $EntityType Entity Types: 1= TransactionLines 2= Accounts 3= Addresses 4= Attachments 5= Contacts 6= Documents 7= GLAccounts 8= ItemPrices 9= Items 10= PaymentTerms 11= Quotations (This entity is going to be removed. Please refer to the new entity QuotationHeaders, QuotationLines.) 12= SalesOrders (This entity is going to be removed. Please refer to the new entity SalesOrderHeaders, SalesOrderLines.) 13= SalesInvoices 14= TimeCostTransactions 15= StockPositions 16= GoodsDeliveries 17= GoodsDeliveryLines 18= GLClassifications 19= ItemWarehouses 20= StorageLocationStockPositions 21= Projects 22= PurchaseOrders 23= Subscriptions 24= SubscriptionLines 25= ProjectWBS 26= ProjectPlanning 27= LeaveAbsenceHoursByDay 28= SerialBatchNumbers 29= StockSerialBatchNumbers 30= ItemAccounts 31= DiscountTables 32= SalesOrderHeaders 33= SalesOrderLines 34= QuotationHeaders 35= QuotationLines 36= ShopOrders 37= ShopOrderMaterialPlans 38= ShopOrderRoutingStepPlans 39= Schedules 40= ScheduleEntries 41= ItemStorageLocations + * @property int $EntityType Entity Types: 1= TransactionLines 2= Accounts 3= Addresses 4= Attachments 5= Contacts 6= Documents 7= GLAccounts 8= ItemPrices 9= Items 10= PaymentTerms 12= SalesOrders (This entity is going to be removed. Please refer to the new entity SalesOrderHeaders, SalesOrderLines.) 13= SalesInvoices 14= TimeCostTransactions 15= StockPositions 16= GoodsDeliveries 17= GoodsDeliveryLines 18= GLClassifications 19= ItemWarehouses 20= StorageLocationStockPositions 21= Projects 22= PurchaseOrders 23= Subscriptions 24= SubscriptionLines 25= ProjectWBS 26= ProjectPlanning 27= LeaveAbsenceHoursByDay 28= SerialBatchNumbers 29= StockSerialBatchNumbers 30= ItemAccounts 31= DiscountTables 32= SalesOrderHeaders 33= SalesOrderLines 34= QuotationHeaders 35= QuotationLines 36= ShopOrders 37= ShopOrderMaterialPlans 38= ShopOrderRoutingStepPlans 39= Schedules 40= ScheduleEntries 41= ItemStorageLocations * @property string $ID Primary key */ class SyncDeleted extends Model diff --git a/src/Picqer/Financials/Exact/SyncProject.php b/src/Picqer/Financials/Exact/SyncProject.php index 9b9701c6..d1122faf 100644 --- a/src/Picqer/Financials/Exact/SyncProject.php +++ b/src/Picqer/Financials/Exact/SyncProject.php @@ -13,6 +13,7 @@ * @property string $AccountContact Contact person of Account * @property string $AccountName Name of Account * @property bool $AllowAdditionalInvoicing Indicates if additional invoice is allowed for project + * @property bool $AllowMemberEntryOnly Allow only member to create time or cost entry * @property bool $BlockEntry Block time and cost entries * @property bool $BlockPlanning Block planning and reservations * @property bool $BlockPurchasing Block purchasing @@ -78,6 +79,7 @@ class SyncProject extends Model 'AccountContact', 'AccountName', 'AllowAdditionalInvoicing', + 'AllowMemberEntryOnly', 'BlockEntry', 'BlockPlanning', 'BlockPurchasing', diff --git a/src/Picqer/Financials/Exact/SyncShopOrderMaterialPlan.php b/src/Picqer/Financials/Exact/SyncShopOrderMaterialPlan.php index 6b88aa04..dc83e8d5 100644 --- a/src/Picqer/Financials/Exact/SyncShopOrderMaterialPlan.php +++ b/src/Picqer/Financials/Exact/SyncShopOrderMaterialPlan.php @@ -31,6 +31,7 @@ * @property float $PlannedPriceFC Planned price of the material * @property float $PlannedQuantity Intended total planned quantity of the material including waste * @property float $PlannedQuantityFactor Intended quantity of the material per unit excluding waste + * @property string $RoutingStepID ID of the routing step. * @property string $ShopOrder Reference to ShopOrders table * @property int $Status Line status * @property string $StatusDescription Description of Status @@ -70,6 +71,7 @@ class SyncShopOrderMaterialPlan extends Model 'PlannedPriceFC', 'PlannedQuantity', 'PlannedQuantityFactor', + 'RoutingStepID', 'ShopOrder', 'Status', 'StatusDescription',