Integration with Intuit - get accounting details for products

This commit is contained in:
Deon George
2023-05-10 12:59:42 +09:00
parent dde11f73f5
commit 17ebbb71e8
8 changed files with 147 additions and 17 deletions

View File

@@ -14,6 +14,7 @@ use Illuminate\Support\Facades\File;
use Illuminate\Support\Str;
use Leenooks\Traits\ScopeActive;
use App\Http\Controllers\AccountingController;
use App\Interfaces\{IDs,ProductItem};
use App\Traits\{ProductDetails,SiteID};
@@ -358,6 +359,11 @@ class Product extends Model implements IDs
return round($price,2);
}
public function accounting(string $provider): Collection
{
return AccountingController::list($provider);
}
/**
* Return the charge from the pricing table for the specific time period and group
*