1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

minor adjustments

This commit is contained in:
David Bomba 2024-08-26 16:20:48 +10:00
parent 406cb5a334
commit 98326f1315
3 changed files with 5 additions and 2 deletions

View File

@ -261,6 +261,7 @@ class QuickbooksService
foreach($records as $record)
{
$ninja_data = $product_transformer->qbToNinja($record);
nlog($ninja_data);
if($product = $this->findProduct($ninja_data['hash']))
{

View File

@ -30,9 +30,10 @@ class ProductTransformer extends BaseTransformer
public function transform(mixed $data): array
{
nlog(data_get($data, 'Id', null));
return [
'hash' => data_get($data, 'ItemRef.value', null)),
'hash' => data_get($data, 'Id.value', null),
'product_key' => data_get($data, 'Name', data_get($data, 'FullyQualifiedName','')),
'notes' => data_get($data, 'Description', ''),
'cost' => data_get($data, 'PurchaseCost', 0),

View File

@ -28,6 +28,7 @@ class QuickbooksIngestTest extends TestCase
parent::setUp();
config(['database.default' => config('ninja.db.default')]);
$this->markTestSkipped('no bueno');
$this->makeTestData();
$this->withoutExceptionHandling();
Auth::setUser($this->user);