From 5b8ccb6e2a290943d996b8fd83de48c36aab60bf Mon Sep 17 00:00:00 2001 From: odiea Date: Fri, 22 Mar 2024 03:45:02 -0600 Subject: [PATCH] Update Supplier.php (#3952) * Update Supplier.php Only way I could get supplier Category to show properly * Update receipt.php This changes display to show Address and New Barcode correctly --- app/Models/Supplier.php | 9 ++++++++- app/Views/receivings/receipt.php | 6 +++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/app/Models/Supplier.php b/app/Models/Supplier.php index 95d7386d1..e1ece16d7 100644 --- a/app/Models/Supplier.php +++ b/app/Models/Supplier.php @@ -326,6 +326,13 @@ class Supplier extends Person */ public function get_category_name(int $supplier_type): string { - return lang("Suppliers.$supplier_type"); + if($supplier_type == 0) + { + return lang('Suppliers.goods'); + } + else + { + return lang('Suppliers.cost'); + } } } diff --git a/app/Views/receivings/receipt.php b/app/Views/receivings/receipt.php index cd3228027..a3801353c 100644 --- a/app/Views/receivings/receipt.php +++ b/app/Views/receivings/receipt.php @@ -51,7 +51,7 @@ } ?> -
+
@@ -159,11 +159,11 @@
- +
- <?= esc($barcode) ?>
+