2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

fix: show Posting Date on Make Payment

- keep rate if item rate is zero on ex-rate change
This commit is contained in:
18alantom 2022-10-11 16:56:04 +05:30 committed by Alan
parent 6216a73688
commit fc779de25d
2 changed files with 5 additions and 1 deletions

View File

@ -88,6 +88,10 @@ export abstract class InvoiceItem extends Doc {
'rate'
)) as undefined | Money;
if (!rate?.float && this.rate?.float) {
return this.rate;
}
if (
fieldname !== 'itemTaxedTotal' &&
fieldname !== 'itemDiscountedTotal'

View File

@ -34,7 +34,7 @@ export function getInvoiceActions(
await openQuickEdit({
schemaName: 'Payment',
name: payment.name as string,
hideFields: ['party', 'date', 'paymentType', 'for'],
hideFields: ['party', 'paymentType', 'for'],
defaults: {
party,
[hideAccountField]: doc.account,