diff --git a/examples/sales-invoices/create-sales-invoice.php b/examples/sales-invoices/create-sales-invoice.php index ffdc5215..69f93a84 100644 --- a/examples/sales-invoices/create-sales-invoice.php +++ b/examples/sales-invoices/create-sales-invoice.php @@ -30,7 +30,7 @@ 'postalCode' => '2000 AA', 'city' => 'Amsterdam', 'country' => 'NL', - 'locale' => 'nl_NL' + 'locale' => 'nl_NL', ], 'lines' => [ [ @@ -39,10 +39,10 @@ 'vatRate' => '21', 'unitPrice' => [ 'currency' => 'EUR', - 'value' => '10.00' // Corrected the format from '10,00' to '10.00' to match typical API expectations - ] - ] - ] + 'value' => '10.00', // Corrected the format from '10,00' to '10.00' to match typical API expectations + ], + ], + ], ]); echo "

New sales invoice created with ID: " . htmlspecialchars($salesInvoice->id) . "

"; diff --git a/examples/sales-invoices/update-sales-invoice.php b/examples/sales-invoices/update-sales-invoice.php index 2442be42..08c6e671 100644 --- a/examples/sales-invoices/update-sales-invoice.php +++ b/examples/sales-invoices/update-sales-invoice.php @@ -28,10 +28,10 @@ 'vatRate' => '21', 'unitPrice' => [ 'currency' => 'EUR', - 'value' => '15.00' - ] - ] - ] + 'value' => '15.00', + ], + ], + ], ]); echo "

Sales invoice updated with ID: " . htmlspecialchars($updatedInvoice->id) . "

";