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
This commit is contained in:
odiea
2024-03-22 03:45:02 -06:00
committed by jekkos
parent e327bb3780
commit 5b8ccb6e2a
2 changed files with 11 additions and 4 deletions

View File

@@ -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');
}
}
}

View File

@@ -51,7 +51,7 @@
}
?>
<div id="company_address"><?= esc(nl2br($config['address'])) ?></div>
<div id="company_address"><?= nl2br(esc($config['address'])) ?></div>
<div id="company_phone"><?= esc($config['phone']) ?></div>
<div id="sale_receipt"><?= lang('Receivings.receipt') ?></div>
<div id="sale_time"><?= esc($transaction_time) ?></div>
@@ -159,11 +159,11 @@
</table>
<div id="sale_return_policy">
<?= esc(nl2br($config['return_policy'])) ?>
<?= nl2br(esc($config['return_policy'])) ?>
</div>
<div id='barcode'>
<img alt='<?= esc($barcode) ?>' src='data:image/png;base64,<?= esc($barcode) ?>' /><br>
<?= $barcode ?><br>
<?= $receiving_id ?>
</div>
</div>