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:
parent
6216a73688
commit
fc779de25d
@ -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'
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user