Bugzilla – Attachment 77352 Details for
Bug 20997
Add Koha::Account::Line::apply
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20997: Add new offset type
Bug-20997-Add-new-offset-type.patch (text/plain), 2.18 KB, created by
Jonathan Druart
on 2018-07-31 19:47:21 UTC
(
hide
)
Description:
Bug 20997: Add new offset type
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-07-31 19:47:21 UTC
Size:
2.18 KB
patch
obsolete
>From 170144c6dc5a92e3c8b7344b7cfd7d93afbc6a49 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 28 Jun 2018 15:51:06 -0300 >Subject: [PATCH] Bug 20997: Add new offset type > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > installer/data/mysql/account_offset_types.sql | 3 ++- > installer/data/mysql/atomicupdate/bug_20997.perl | 11 +++++++++++ > .../intranet-tmpl/prog/en/includes/account_offset_type.inc | 1 + > 3 files changed, 14 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_20997.perl > >diff --git a/installer/data/mysql/account_offset_types.sql b/installer/data/mysql/account_offset_types.sql >index 7b96abfdbd..baf3a26a6a 100644 >--- a/installer/data/mysql/account_offset_types.sql >+++ b/installer/data/mysql/account_offset_types.sql >@@ -11,4 +11,5 @@ INSERT INTO account_offset_types ( type ) VALUES > ('Rental Fee'), > ('Fine Update'), > ('Fine'), >-('Void Payment'); >+('Void Payment'), >+('credit_applied'); >diff --git a/installer/data/mysql/atomicupdate/bug_20997.perl b/installer/data/mysql/atomicupdate/bug_20997.perl >new file mode 100644 >index 0000000000..159917aacb >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_20997.perl >@@ -0,0 +1,11 @@ >+$DBversion = 'XXX'; >+if( CheckVersion( $DBversion ) ) { >+ >+ # Add 'credit_applied' offset type >+ $dbh->do(q{ >+ INSERT IGNORE INTO `account_offset_types` (`type`) VALUES ('credit_applied'); >+ }); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 20997 - Add Koha::Account::Line::apply)\n"; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/account_offset_type.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/account_offset_type.inc >index 6ec71d1f09..7241c73391 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/account_offset_type.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/account_offset_type.inc >@@ -1,4 +1,5 @@ > [% SWITCH account_offset.type %] >+ [% CASE 'credit_applied' %]Credit applied > [% CASE 'Payment' %]Payment > [% CASE 'Manual Credit' %]Manual credit > [% CASE 'Manual Debit' %]Manual invoice >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 20997
:
76451
|
76452
|
76459
|
76460
|
76461
|
76462
|
76463
|
76464
|
76465
|
76549
|
76550
|
76551
|
76654
|
76655
|
77194
|
77195
|
77196
|
77197
|
77198
|
77199
|
77310
|
77349
|
77350
|
77351
| 77352 |
77353
|
77354
|
77355
|
77356