|
|
@@ -1,4 +1,4 @@
|
|
|
-<?php
|
|
|
+<?php /** @noinspection PhpUnhandledExceptionInspection */
|
|
|
|
|
|
namespace App;
|
|
|
|
|
|
@@ -16,6 +16,7 @@ $user = $core->getUser();
|
|
|
$is_company = $model instanceof Company;
|
|
|
$is_customer = $model instanceof Customer;
|
|
|
$is_location = $model instanceof Location;
|
|
|
+$is_supplier = $model instanceof Supplier;
|
|
|
|
|
|
$name_label = "Name";
|
|
|
if($is_company || $is_customer) {
|
|
|
@@ -24,6 +25,9 @@ if($is_company || $is_customer) {
|
|
|
if($is_location) {
|
|
|
$name_label = "Location Name";
|
|
|
}
|
|
|
+if($is_supplier) {
|
|
|
+ $name_label = "Supplier Name";
|
|
|
+}
|
|
|
|
|
|
?>
|
|
|
|
|
|
@@ -145,7 +149,7 @@ if($is_location) {
|
|
|
?>
|
|
|
<div class="mb-3">
|
|
|
<label class="form-label" for="invoice-footer"><?=htmlspecialchars(__("Invoice Footer"))?></label>
|
|
|
- <textarea class="form-control" type="tel" id="invoice-footer" name="invoice_footer" placeholder="<?=htmlspecialchars(__("Type invoice footer"))?>" rows="3" maxlength="255"><?=htmlspecialchars($model->invoice_footer)?></textarea>
|
|
|
+ <textarea class="form-control" id="invoice-footer" name="invoice_footer" placeholder="<?=htmlspecialchars(__("Type invoice footer"))?>" rows="3" maxlength="255"><?=htmlspecialchars($model->invoice_footer)?></textarea>
|
|
|
</div>
|
|
|
<?php
|
|
|
}
|
|
|
@@ -181,6 +185,19 @@ if($is_location) {
|
|
|
</section>
|
|
|
<?php
|
|
|
}
|
|
|
+
|
|
|
+ if($is_supplier) {
|
|
|
+ ?>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-6">
|
|
|
+ <div class="mb-3">
|
|
|
+ <label class="form-label" for="sku-prefix"><?=htmlspecialchars(__("SKU Prefix"))?></label>
|
|
|
+ <input class="form-control" type="text" id="sku-prefix" name="sku_prefix" placeholder="<?=htmlspecialchars(__("Type SKU prefix"))?>" value="<?=htmlspecialchars($model->sku_prefix)?>" maxlength="2" />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
?>
|
|
|
|
|
|
</div>
|