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