|
|
@@ -18,8 +18,6 @@ $user = $core->getUser();
|
|
|
$sale = $document->getSale();
|
|
|
$related_document = $document->getRelatedDocument();
|
|
|
|
|
|
-$location = $document->getLocation();
|
|
|
-
|
|
|
?>
|
|
|
<section class="mb-4">
|
|
|
<h3 class="mb-3">
|
|
|
@@ -50,44 +48,62 @@ $location = $document->getLocation();
|
|
|
|
|
|
<?php
|
|
|
$user->insertCsrfToken();
|
|
|
-
|
|
|
- if($document->isSalesOrder()) {
|
|
|
- ?>
|
|
|
- <div class="mb-3">
|
|
|
- <label for="invoice-status" class="form-label">
|
|
|
- <b><?=htmlspecialchars(__("Status"))?></b>
|
|
|
- </label>
|
|
|
- <span class="ms-1"></span>
|
|
|
- <span class="badge rounded-pill text-bg-danger">
|
|
|
- <?=htmlspecialchars(__("Important"))?>
|
|
|
- </span>
|
|
|
- <select class="form-select" name="invoice_status" id="invoice-status">
|
|
|
- <?php
|
|
|
- HtmlHelper::renderOptions(SalesOrderStatuses::options(), $document->invoice_status);
|
|
|
+ ?>
|
|
|
+ <div class="row">
|
|
|
+ <div class="col-sm-6">
|
|
|
+ <?php
|
|
|
+ if($document->isSalesOrder()) {
|
|
|
?>
|
|
|
- </select>
|
|
|
- </div>
|
|
|
- <?php
|
|
|
- }
|
|
|
- else if($document->isAru()) {
|
|
|
- ?>
|
|
|
- <div class="mb-3">
|
|
|
- <label for="aru-status" class="form-label">
|
|
|
- <b><?=htmlspecialchars(__("Status"))?></b>
|
|
|
- </label>
|
|
|
- <span class="ms-1"></span>
|
|
|
- <span class="badge rounded-pill text-bg-danger">
|
|
|
- <?=htmlspecialchars(__("Important"))?>
|
|
|
- </span>
|
|
|
- <select class="form-select" name="aru_status" id="aru-status">
|
|
|
+ <div class="mb-3">
|
|
|
+ <label for="invoice-status" class="form-label">
|
|
|
+ <b><?=htmlspecialchars(__("Status"))?></b>
|
|
|
+ </label>
|
|
|
+ <span class="ms-1"></span>
|
|
|
+ <span class="badge rounded-pill text-bg-danger">
|
|
|
+ <?=htmlspecialchars(__("Important"))?>
|
|
|
+ </span>
|
|
|
+ <select class="form-select" name="invoice_status" id="invoice-status">
|
|
|
+ <?php
|
|
|
+ HtmlHelper::renderOptions(SalesOrderStatuses::options(), $document->invoice_status);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
<?php
|
|
|
- HtmlHelper::renderOptions(AruStatuses::options(), $document->aru_status);
|
|
|
+ }
|
|
|
+ else if($document->isAru()) {
|
|
|
?>
|
|
|
- </select>
|
|
|
+ <div class="mb-3">
|
|
|
+ <label for="aru-status" class="form-label">
|
|
|
+ <b><?=htmlspecialchars(__("Status"))?></b>
|
|
|
+ </label>
|
|
|
+ <span class="ms-1"></span>
|
|
|
+ <span class="badge rounded-pill text-bg-danger">
|
|
|
+ <?=htmlspecialchars(__("Important"))?>
|
|
|
+ </span>
|
|
|
+ <select class="form-select" name="aru_status" id="aru-status">
|
|
|
+ <?php
|
|
|
+ HtmlHelper::renderOptions(AruStatuses::options(), $document->aru_status);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ <?php
|
|
|
+ }
|
|
|
+ ?>
|
|
|
</div>
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
+ <div class="col-sm-6">
|
|
|
+ <div class="mb-3">
|
|
|
+ <label for="location" class="form-label">
|
|
|
+ <?=htmlspecialchars(__("Location"))?>
|
|
|
+ </label>
|
|
|
+ <select class="form-select" name="location_id" id="location" <?=HtmlHelper::required($document->location_id)?>>
|
|
|
+ <option value=""><?=htmlspecialchars(__("Select Location"))?></option>
|
|
|
+ <?php
|
|
|
+ HtmlHelper::renderOptions(Location::getOptions(), $document->location_id);
|
|
|
+ ?>
|
|
|
+ </select>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="row">
|
|
|
<?php
|
|
|
@@ -334,17 +350,6 @@ $location = $document->getLocation();
|
|
|
|
|
|
<dt><?=htmlspecialchars(__("Date/Time Created"))?></dt>
|
|
|
<dd><?=htmlspecialchars($user->formatDateTime($document->getDateTimeCreated()))?></dd>
|
|
|
-
|
|
|
- <?php
|
|
|
- if($location) {
|
|
|
- ?>
|
|
|
- <dt><?=htmlspecialchars(__("Location"))?></dt>
|
|
|
- <dd>
|
|
|
- <a href="<?=htmlspecialchars($location->getUrl())?>"><?=htmlspecialchars($location->getDisplayName())?></a>
|
|
|
- </dd>
|
|
|
- <?php
|
|
|
- }
|
|
|
- ?>
|
|
|
</dl>
|
|
|
</section>
|
|
|
</div>
|