From 25d4370305fa5c0bb1f7f0740b58e1a6161805da Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Wed, 14 Jun 2023 10:55:13 +0000
Subject: [PATCH] Show UCRM version on webhook test
---
src/InvoiceSynchronizer.php | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/src/InvoiceSynchronizer.php b/src/InvoiceSynchronizer.php
index 3ddf959..c16d17c 100644
--- a/src/InvoiceSynchronizer.php
+++ b/src/InvoiceSynchronizer.php
@@ -6,15 +6,7 @@
use \Webit\WFirmaSDK\Invoices as Invoices;
use \Webit\WFirmaSDK\Payments as Payments;
-class InvoiceSynchronizer {
- protected $wfirma;
- protected $helper;
-
- function __construct(\Webit\WFirmaSDK\Entity\ModuleApiFactory $wFirmaApi, UcrmHelper $ucrmHelper) {
- $this->wfirma = $wFirmaApi;
- $this->helper = $ucrmHelper;
- }
-
+class InvoiceSynchronizer extends Synchronizer {
function getContractorId($clientId, $synchronize = TRUE) {
if ($synchronize) {
$synchronizer = new ContractorSynchronizer($this->wfirma, $this->helper);
@@ -55,7 +47,7 @@
[$c2->name(), $c2->unit(), $c2->count(), $c2->price(), $c2->vat(), $c2->discount()];
}
- function synchronize($ucrmInvoiceId) {
+ function synchronize(int $ucrmInvoiceId) {
$crm = $this->helper->getApi();
$wFirmaInvoices = $this->wfirma->invoicesApi();
--
Gitblit v1.10.0