[Bug 40694] New: "Actual cost" on receive displays in false format with CurrencyFormat != US
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40694 Bug ID: 40694 Summary: "Actual cost" on receive displays in false format with CurrencyFormat != US Change sponsored?: --- Product: Koha Version: 24.11 Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Acquisitions Assignee: koha-bugs@lists.koha-community.org Reporter: katrin.fischer@bsz-bw.de QA Contact: testopia@bugs.koha-community.org CC: michaela.sieber@kit.edu When CurrencyFormat is set to "FR", the actual cost on receiving an item is displayed with a decimal comma in the input field. All input fields need to use a decimal dot or there will be an error on attempting to save the form. To test: * Set CurrencyFormat to FR * Add an order, set a price with some "cents" * Close basket * Receive shipment * Click on receive link - verify the input field has the , instead of the dot * Try to save without changing - verify error message At the moment, we need to make sure all input fields are using the . not , until we can make a global change. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40694 --- Comment #1 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- It looks like this might be the fix: if(invoiceincgst == "1") { rrp_txt = Number(row.rrp_tax_included).format_price()+'<span class="hint"> '+ADJ_TAX_INC.format(active_currency)+"</span>"; ecost_txt = Number(row.ecost_tax_included).format_price()+'<span class="hint"> '+TAX_INC+"</span>"; - $("#unitprice").val(row.unit_price_tax_included > 0 ? Number(row.unit_price_tax_included).format_price() : Number(row.ecost_tax_included).format_price()); + $("#unitprice").val(row.unit_price_tax_included > 0 ? Number(row.unit_price_tax_included) : Number(row.ecost_tax_included)); $("#unitprice_hint").html(TAX_INC); } else { rrp_txt = Number(row.rrp_tax_excluded).format_price()+'<span class="hint"> '+ADJ_TAX_EXC.format(active_currency)+"</span>"; ecost_txt = Number(row.ecost_tax_excluded).format_price()+'<span class="hint"> '+TAX_EXC+"</span>"; - $("#unitprice").val(row.unit_price_tax_excluded > 0 ? Number(row.unit_price_tax_excluded).format_price() : Number(row.ecost_tax_excluded).format_price()); + $("#unitprice").val(row.unit_price_tax_excluded > 0 ? Number(row.unit_price_tax_excluded) : Number(row.ecost_tax_excluded)); $("#unitprice_hint").html(TAX_EXC); } -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org