[Bug]: Customer Ledger Entry Factbox - Detailed Ledger Entries is not updated when linked entry is cleared

Đang mở Phù hợp với người mới
#13,621 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
77/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Lĩnh vực
backend

Hướng nghiên cứu

Bắt đầu với BaseApp/Sales/Receivables/CustomerLedgerEntryFactBox.Page.al và đọc trigger OnFindRecord, nơi các bộ đếm factbox khác được đặt lại. Kiểm tra cách NoOfDetailedCustomerEntries được điền và so sánh hành vi đặt lại của nó khi trường được liên kết bị xóa. Hoàn tất khi bộ đếm Detailed Ledger Entries hiển thị 0 sau khi xóa trường Customer Ledger Entry; xác nhận bằng các bước tái hiện trong issue.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Team: Finance
Describe the issue

We have a Customer Ledger Entry Factbox that is added to a card page:

area(FactBoxes)
{
    part("Customer Ledger Entry"; "Customer Ledger Entry FactBox")
    {
        SubPageLink = "Entry No." = field("Customer Ledger Entry No.");
    }
}

When our field is cleared by the user, the Detailed Ledger Entries count is not updated on the page:

Image
Expected behavior

The Detailed Ledger Entries count is 0 as well.

Steps to reproduce
  • Add the factbox on a cardpage as a part
  • Select a value of the Customer Ledger Entry on your page
  • Factbox is filled with data
  • Clear the Customer Ledger Entry field
  • All data on the Factbox is cleared except for the Detailed Ledger Entry count
Additional context

File: .../BaseApp/Sales/Receivables/CustomerLedgerEntryFactBox.Page.al

Current Code:

trigger OnFindRecord(Which: Text): Boolean
begin
    NoOfReminderFinEntries := 0;
    NoOfAppliedEntries := 0;
    DocumentHeading := '';

    exit(Rec.Find(Which));
end;

I think adding NoOfDetailedCustomerEntries := 0; at line 3 of the OnFindRecord trigger should fix.

Ngôn ngữ chính
AL
Star
720
Fork
488
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
568

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/BCApps

Tất cả issue của microsoft/BCApps

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.