From efaca2d66295fbdad5154c3a6e59fcf22c44af76 Mon Sep 17 00:00:00 2001 From: Steve Blamey Date: Wed, 19 Jul 2023 11:42:17 +0100 Subject: [PATCH] Update plapayments to use DummyPayment class with no payment file output --- assets/css/uzerp/screen.less | 17 ++++ .../templates/elements/select_for_output.tpl | 19 +++-- .../controllers/PlpaymentsController.php | 83 ++++++++++++++++--- .../controllers/PltransactionsController.php | 7 +- .../purchase_ledger/models/PLPayment.php | 41 +++++++-- .../models/PLTransactionCollection.php | 6 +- .../purchase_ledger/reports/DummyPayment.php | 49 +++++++++++ .../templates/plpayments/index.tpl | 8 +- .../templates/plpayments/view.tpl | 13 ++- 9 files changed, 210 insertions(+), 33 deletions(-) create mode 100644 modules/public_pages/erp/ledger/purchase_ledger/reports/DummyPayment.php diff --git a/assets/css/uzerp/screen.less b/assets/css/uzerp/screen.less index 941b960a..8c1c9591 100644 --- a/assets/css/uzerp/screen.less +++ b/assets/css/uzerp/screen.less @@ -1296,6 +1296,23 @@ font-size: 7px; } } + + /* modules/common/templates/elements/select_for_output.tpl */ + div[data-action=select_for_output] { + .form-actions { + display: flex; + column-gap: 10px; + align-items: center; + + .select-all { + order: 2; + } + + input[name=save] { + order: 3; + } + } + } /* we could use attribute selectors here, however we might not want to apply these styles everywhere */ diff --git a/modules/common/templates/elements/select_for_output.tpl b/modules/common/templates/elements/select_for_output.tpl index 52d6f0e6..5fe2cb94 100644 --- a/modules/common/templates/elements/select_for_output.tpl +++ b/modules/common/templates/elements/select_for_output.tpl @@ -108,14 +108,17 @@ {/data_table} {paging} - Select count - {submit tags='none' name='save' value='Save Selection'} - {/form} - {form controller=$self.controller action='select_all' notags=true} - - - {submit tags='none' name='save' value='Select All'} - {/form} +
+ + {submit tags='none' name='save' value='Save Selection'} +
+ {/form} + {form controller=$self.controller action='select_all' notags=true class='select-all'} + + + {submit tags='none' name='save' value='Select All'} + {/form} +