Skip to content

Commit

Permalink
Update sample example
Browse files Browse the repository at this point in the history
  • Loading branch information
klsheng committed Jun 23, 2024
1 parent c90bd82 commit 637c579
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,21 @@ use Klsheng\Myinvois\Helper\MyInvoisHelper;
use Klsheng\Myinvois\Example\Ubl\CreateDocumentExample;

$id = 'INV20240418105410';
$supplier = [
'TIN' => 'C00000000000',
'BRN' => '0000000-T',
];
$customer = [
'TIN' => 'C00000000000',
'BRN' => '0000000-T',
];
$delivery = [
'TIN' => 'C00000000000',
'BRN' => '0000000-T',
];

$example = new CreateDocumentExample();
$invoice = $example->createJsonDocument($id);
$invoice = $example->createJsonDocument($id, $supplier, $customer, $delivery);

$documents = [];
$document = MyInvoisHelper::getSubmitDocument($id, $invoice);
Expand Down

0 comments on commit 637c579

Please sign in to comment.