mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 15:13:40 -04:00
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:
@@ -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');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user