Changeset 3263898
- Timestamp:
- 03/29/2025 06:07:46 PM (12 months ago)
- Location:
- mareike
- Files:
-
- 8 edited
- 1 copied
-
tags/5.2 (copied) (copied from mareike/trunk)
-
tags/5.2/app/controllers/invoices/class-createinvoice.php (modified) (1 diff)
-
tags/5.2/app/requests/class-getcsvdatarequest.php (modified) (3 diffs)
-
tags/5.2/mareike.php (modified) (1 diff)
-
tags/5.2/readme.txt (modified) (2 diffs)
-
trunk/app/controllers/invoices/class-createinvoice.php (modified) (1 diff)
-
trunk/app/requests/class-getcsvdatarequest.php (modified) (3 diffs)
-
trunk/mareike.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
mareike/tags/5.2/app/controllers/invoices/class-createinvoice.php
r3233121 r3263898 262 262 'contact_name' => $contact_name, 263 263 'contact_email' => $email, 264 'contact_bank_owner' => $ iban,265 'contact_bank_iban' => $ account_owner,264 'contact_bank_owner' => $account_owner, 265 'contact_bank_iban' => $iban, 266 266 'costunit_id' => $cost_unit->id, 267 267 'amount' => $amount, -
mareike/tags/5.2/app/requests/class-getcsvdatarequest.php
r3233121 r3263898 49 49 50 50 foreach ( $invoices as $invoice ) { 51 $invoice_name = 'NOPAYOUT'; 52 $invoice_iban = 'NOPAYOUT'; 53 54 if ( 'APPROVED' === $invoice->status ) { 55 $invoice_iban = trim($invoice->contact_bank_iban); 56 $invoice_name = trim($invoice->contact_bank_owner); 57 } 58 51 59 $csv_line = '"' . $invoice->lfd_nummer . '",'; 52 if ($invoice->sta uts === Invoice::$INVOICE_STATUS_DENIED) {60 if ($invoice->status === Invoice::$INVOICE_STATUS_DENIED) { 53 61 $csv_line .= '"","","",""'; 54 62 $invoice->status = Invoice::$INVOICE_STATUS_DENIED_EXPORTED; … … 57 65 $csv_line .= 58 66 '"' . $invoice->type . '",' . 59 '"' . $invoice->type . '",' . 60 '"' . ( 'APPROVED' === $invoice->status ? trim( $invoice->contact_bank_owner ) : 'NOPAYOUT' ) . '",' . 61 '"' . ( 'APPROVED' === $invoice->status ? trim( $invoice->contact_bank_iban ) : 'NOPAYOUT' ) . '",' . 67 '"' . $invoice_name . '",' . 68 '"' . $invoice_iban . '",' . 62 69 '"' . mareike_format_amount( $invoice->amount ) . '"'; 63 70 } … … 68 75 $invoice->comment = 'NOPAYOUT'; 69 76 } 70 71 $invoice->save();72 77 } 73 78 -
mareike/tags/5.2/mareike.php
r3233126 r3263898 3 3 * Plugin Name: mareike 4 4 * Description: A tool to help associations to manage travel or material costs for events or ongoing jobs. 5 * Version: 5. 15 * Version: 5.2 6 6 * Tags: mareike, administration, fincance, travelmanagement, association tool 7 7 * Requires at least: 6.0 -
mareike/tags/5.2/readme.txt
r3233126 r3263898 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7 6 Stable tag: 5. 16 Stable tag: 5.2 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 39 39 40 40 ## Changelog ## 41 = 5.2 = 42 * [BUG] Fixed saving name and iban of account owner for new invoices 43 * [BUG] Fixed CSV exports 44 * [BUG] Fixed handling denied invoices 45 41 46 = 5.1 = 42 47 * [BUG] Fix in recognition of account data on multisites -
mareike/trunk/app/controllers/invoices/class-createinvoice.php
r3233121 r3263898 262 262 'contact_name' => $contact_name, 263 263 'contact_email' => $email, 264 'contact_bank_owner' => $ iban,265 'contact_bank_iban' => $ account_owner,264 'contact_bank_owner' => $account_owner, 265 'contact_bank_iban' => $iban, 266 266 'costunit_id' => $cost_unit->id, 267 267 'amount' => $amount, -
mareike/trunk/app/requests/class-getcsvdatarequest.php
r3233121 r3263898 49 49 50 50 foreach ( $invoices as $invoice ) { 51 $invoice_name = 'NOPAYOUT'; 52 $invoice_iban = 'NOPAYOUT'; 53 54 if ( 'APPROVED' === $invoice->status ) { 55 $invoice_iban = trim($invoice->contact_bank_iban); 56 $invoice_name = trim($invoice->contact_bank_owner); 57 } 58 51 59 $csv_line = '"' . $invoice->lfd_nummer . '",'; 52 if ($invoice->sta uts === Invoice::$INVOICE_STATUS_DENIED) {60 if ($invoice->status === Invoice::$INVOICE_STATUS_DENIED) { 53 61 $csv_line .= '"","","",""'; 54 62 $invoice->status = Invoice::$INVOICE_STATUS_DENIED_EXPORTED; … … 57 65 $csv_line .= 58 66 '"' . $invoice->type . '",' . 59 '"' . $invoice->type . '",' . 60 '"' . ( 'APPROVED' === $invoice->status ? trim( $invoice->contact_bank_owner ) : 'NOPAYOUT' ) . '",' . 61 '"' . ( 'APPROVED' === $invoice->status ? trim( $invoice->contact_bank_iban ) : 'NOPAYOUT' ) . '",' . 67 '"' . $invoice_name . '",' . 68 '"' . $invoice_iban . '",' . 62 69 '"' . mareike_format_amount( $invoice->amount ) . '"'; 63 70 } … … 68 75 $invoice->comment = 'NOPAYOUT'; 69 76 } 70 71 $invoice->save();72 77 } 73 78 -
mareike/trunk/mareike.php
r3233126 r3263898 3 3 * Plugin Name: mareike 4 4 * Description: A tool to help associations to manage travel or material costs for events or ongoing jobs. 5 * Version: 5. 15 * Version: 5.2 6 6 * Tags: mareike, administration, fincance, travelmanagement, association tool 7 7 * Requires at least: 6.0 -
mareike/trunk/readme.txt
r3233126 r3263898 4 4 Requires at least: 6.0 5 5 Tested up to: 6.7 6 Stable tag: 5. 16 Stable tag: 5.2 7 7 License: GPLv3 8 8 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 39 39 40 40 ## Changelog ## 41 = 5.2 = 42 * [BUG] Fixed saving name and iban of account owner for new invoices 43 * [BUG] Fixed CSV exports 44 * [BUG] Fixed handling denied invoices 45 41 46 = 5.1 = 42 47 * [BUG] Fix in recognition of account data on multisites
Note: See TracChangeset
for help on using the changeset viewer.