From 7a41616469ce5861dd5ef8812b5e95a37906b1b8 Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Sun, 15 Dec 2024 14:00:35 +0100 Subject: [PATCH] wip --- .../sales-invoices/create-sales-invoice.php | 3 ++- src/Types/PaymentTerm.php | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/Types/PaymentTerm.php diff --git a/examples/sales-invoices/create-sales-invoice.php b/examples/sales-invoices/create-sales-invoice.php index a3a4aed1..69f93a84 100644 --- a/examples/sales-invoices/create-sales-invoice.php +++ b/examples/sales-invoices/create-sales-invoice.php @@ -1,5 +1,6 @@ SalesInvoiceStatus::DRAFT, 'vatScheme' => 'standard', 'vatMode' => 'inclusive', - 'paymentTerm' => '30 days', + 'paymentTerm' => PaymentTerm::DAYS_30, 'recipientIdentifier' => 'XXXXX', 'recipient' => [ 'type' => 'consumer', diff --git a/src/Types/PaymentTerm.php b/src/Types/PaymentTerm.php new file mode 100644 index 00000000..7691a2e0 --- /dev/null +++ b/src/Types/PaymentTerm.php @@ -0,0 +1,20 @@ +