From 643aed1af6a607d1dc5fc657165e9f78713624cc Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 23 Apr 2021 12:50:27 +0100 Subject: [PATCH] Bug 26734: Add notices for translations This patch updates the translated sample_notices.sql files for each of the remaining translations. Signed-off-by: Jonathan Druart --- .../fr-CA/obligatoire/sample_notices.sql | 111 ++++++++++-------- .../fr-FR/1-Obligatoire/sample_notices.sql | 102 ++++++++-------- .../data/mysql/it-IT/necessari/notices.sql | 101 +++++++++------- .../nb-NO/1-Obligatorisk/sample_notices.sql | 101 +++++++++------- .../mysql/pl-PL/mandatory/sample_notices.sql | 101 +++++++++------- .../mysql/ru-RU/mandatory/sample_notices.sql | 101 +++++++++------- .../mysql/uk-UA/mandatory/sample_notices.sql | 101 +++++++++------- 7 files changed, 397 insertions(+), 321 deletions(-) diff --git a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql b/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql index 84ca137c09..ceaf88f1fb 100644 --- a/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql +++ b/installer/data/mysql/fr-CA/obligatoire/sample_notices.sql @@ -110,108 +110,119 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Amnistie', 0, 'Amnistie', '[%- USE Price -%]\r\nNous avons accordé une amnistie de [% credit.amount * -1 | $Price %] à votre compte.\r\n\r\nLes frais suivants ont été amnistiés :\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nMontant payé : [% o.amount * -1 | $Price %]\r\nMontant en souffrance : [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - + - + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

-

REÇU

+
+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Reçu de [% patron.firstname | html %] [% patron.surname | html %]
- Numéro de carte : [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
DateDescription des fraisDescription of charges NoteMontantAmount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Solde non-réglé : [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - + - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

-

FACTURE

+
+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Facturé à : [% patron.firstname | html %] [% patron.surname | html %]
- Numéro de carte : [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
DateDescription des fraisDescription of charges NoteMontantSoldeAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Solde non-réglé : [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); diff --git a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql b/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql index 6f23c54d38..e3439926d5 100644 --- a/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql +++ b/installer/data/mysql/fr-FR/1-Obligatoire/sample_notices.sql @@ -223,28 +223,30 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - @@ -254,81 +256,89 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
Amount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
Date Description of charges NoteAmountAmount outstandingAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); - INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES ('circulation', 'SR_SLIP', '', 'Stock rotation slip', 0, 'Stock rotation report', 'Stock rotation report for [% branch.name %]:\r\n\r\n[% IF branch.items.size %][% branch.items.size %] items to be processed for this branch.\r\n[% ELSE %]No items to be processed for this branch\r\n[% END %][% FOREACH item IN branch.items %][% IF item.reason != \'in-demand\' %]Title: [% item.title %]\r\nAuthor: [% item.author %]\r\nCallnumber: [% item.callnumber %]\r\nLocation: [% item.location %]\r\nBarcode: [% item.barcode %]\r\nOn loan?: [% item.onloan %]\r\nStatus: [% item.reason %]\r\nCurrent library: [% item.branch.branchname %] [% item.branch.branchcode %]\r\n\r\n[% END %][% END %]', 'email'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES diff --git a/installer/data/mysql/it-IT/necessari/notices.sql b/installer/data/mysql/it-IT/necessari/notices.sql index 0c71d61e05..2cedfc046c 100644 --- a/installer/data/mysql/it-IT/necessari/notices.sql +++ b/installer/data/mysql/it-IT/necessari/notices.sql @@ -225,28 +225,30 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - @@ -256,77 +258,86 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
Amount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
Date Description of charges NoteAmountAmount outstandingAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); diff --git a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql b/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql index c38c8407e1..4157d89064 100644 --- a/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql +++ b/installer/data/mysql/nb-NO/1-Obligatorisk/sample_notices.sql @@ -241,28 +241,30 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - @@ -272,77 +274,86 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
Amount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
Date Description of charges NoteAmountAmount outstandingAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); diff --git a/installer/data/mysql/pl-PL/mandatory/sample_notices.sql b/installer/data/mysql/pl-PL/mandatory/sample_notices.sql index 8763a8f84a..3e83c93c39 100644 --- a/installer/data/mysql/pl-PL/mandatory/sample_notices.sql +++ b/installer/data/mysql/pl-PL/mandatory/sample_notices.sql @@ -220,28 +220,30 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - @@ -251,77 +253,86 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
Amount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
Date Description of charges NoteAmountAmount outstandingAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); diff --git a/installer/data/mysql/ru-RU/mandatory/sample_notices.sql b/installer/data/mysql/ru-RU/mandatory/sample_notices.sql index 19c99d3060..3bb349f50e 100644 --- a/installer/data/mysql/ru-RU/mandatory/sample_notices.sql +++ b/installer/data/mysql/ru-RU/mandatory/sample_notices.sql @@ -222,28 +222,30 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - @@ -253,77 +255,86 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
Amount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
Date Description of charges NoteAmountAmount outstandingAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); diff --git a/installer/data/mysql/uk-UA/mandatory/sample_notices.sql b/installer/data/mysql/uk-UA/mandatory/sample_notices.sql index 74e3521cb7..4306377ec0 100644 --- a/installer/data/mysql/uk-UA/mandatory/sample_notices.sql +++ b/installer/data/mysql/uk-UA/mandatory/sample_notices.sql @@ -316,28 +316,30 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` ('circulation', 'ACCOUNT_WRITEOFF', '', 'Account writeoff', 0, 'Account writeoff', '[%- USE Price -%]\r\nAn account writeoff of [% credit.amount * -1 | $Price %] has been applied to your account.\r\n\r\nThis writeoff affected the following fees:\r\n[%- FOREACH o IN offsets %]\r\nDescription: [% o.debit.description %]\r\nAmount paid: [% o.amount * -1 | $Price %]\r\nAmount remaining: [% o.debit.amountoutstanding | $Price %]\r\n[% END %]', 'email', 'default'); INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_CREDIT', '', 'Account payment', 0, 'Account payment', ' +('circulation', 'ACCOUNT_CREDIT', '', 'Confirmation de paiement', 0, 'Confirmation de paiement', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - @@ -347,77 +349,86 @@ INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title` - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - + + + + + + + +[% IF ( tendered ) %] + + + + + + + + +[% END %] - [% END %] - - [% IF ( totalcredit ) %] + + [% IF ( credit.patron.account.balance >= 0 ) %]
+

[% LibraryName | html %]

+

Fee receipt

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( credit.patron.branchcode ) | html %]

- Received with thanks from [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Received with thanks from [% credit.patron.firstname | html %] [% credit.patron.surname | html %]
+ Card number: [% credit.patron.cardnumber | html %]
Amount
[% account.date | $KohaDates %] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %]
[% credit.date | $KohaDates %] + [% PROCESS account_type_description account=credit %] + [%- IF credit.description %], [% credit.description | html %][% END %] + [% credit.note | html %][% credit.amount | $Price %]
Amount tendered: [% tendered | $Price %]
Change given: [% change | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% credit.patron.account.balance | $Price %]
', 'print', 'default'); INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`) VALUES -('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', ' +('circulation', 'ACCOUNT_DEBIT', '', 'Account fee', 0, 'Account fee', '[% USE Price %] +[% PROCESS \"accounts.inc\" %] +
[% IF ( LibraryName ) %] - [% END %] - - - - - + + - [% FOREACH account IN accounts %] - - - - - [% IF ( account.amountcredit ) %] - [% IF ( account.amountoutstandingcredit ) %] - - [% END %] + + + + + + + - - [% IF ( totalcredit ) %] + + [% IF ( debit.patron.account.balance <= 0 ) %]
+

[% LibraryName | html %]

+

INVOICE

-

[% Branches.GetName( patron.branchcode ) | html %]

+
+

[% Branches.GetName( debit.patron.branchcode ) | html %]

- Bill to: [% patron.firstname | html %] [% patron.surname | html %]
- Card number: [% patron.cardnumber | html %]
+
+ Bill to: [% debit.patron.firstname | html %] [% debit.patron.surname | html %]
+ Card number: [% debit.patron.cardnumber | html %]
Date Description of charges NoteAmountAmount outstandingAmountAmount outstanding
[% account.date | $KohaDates%] - [% PROCESS account_type_description account=account %] - [%- IF account.description %], [% account.description | html %][% END %] - [% account.note | html %][% ELSE %][% END %][% account.amount | $Price %][% ELSE %][% END %][% account.amountoutstanding | $Price %]
[% debit.date | $KohaDates%] + [% PROCESS account_type_description account=debit %] + [%- IF debit.description %], [% debit.description | html %][% END %] + [% debit.note | html %][% debit.amount | $Price %][% debit.amountoutstanding | $Price %]
Total outstanding dues as on date: [% ELSE %][% END %][% total | $Price %]Total outstanding dues as on date: [% ELSE %][% END %][% debit.patron.account.balance | $Price %]
', 'print', 'default'); -- 2.39.5