Attributes fixes and warning removal

- when the payments array was folded into sale_data there was an earlier payments[] reference in the foreach loop that didn't get folded in.
- Update PHPdoc
- Added ::class to remove polymorphic call warning
- Removed unreachable 'break;' statement after return statement.
- Added missing return type
- fixed missing assignment of mailchimp_api_key
This commit is contained in:
objecttothis
2023-11-07 21:48:05 +04:00
committed by jekkos
parent 6a316c56f6
commit 405583c832
49 changed files with 186 additions and 172 deletions

View File

@@ -246,7 +246,7 @@ class Tax_code extends Model
*/
public function get_sales_tax_code(string $city = '', string $state = '')
{
$config = config('OSPOS')->settings;
$config = config(OSPOS::class)->settings;
// if tax code using both city and state cannot be found then try again using just the state
// if the state tax code cannot be found then try again using blanks for both