2
0
mirror of https://github.com/frappe/books.git synced 2025-02-02 20:18:26 +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' 'rate'
)) as undefined | Money; )) as undefined | Money;
if (!rate?.float && this.rate?.float) {
return this.rate;
}
if ( if (
fieldname !== 'itemTaxedTotal' && fieldname !== 'itemTaxedTotal' &&
fieldname !== 'itemDiscountedTotal' fieldname !== 'itemDiscountedTotal'

View File

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