iDempiere

Unlock the power of enterprise resource planning with our iDempiere category! Discover the latest tips, tricks, and best practices for optimizing your business operations and streamlining workflows with this robust and highly customizable ERP software. From implementation to customization, our expert guides will walk you through every step of the process, helping you harness the full potential of iDempiere for your organization. Whether you’re a seasoned ERP pro or new to the game, our iDempiere category is your ultimate resource for success.

95 篇文章
iDempiere

Mastering Currency Rate Check Skipping: Configuration and Coding Guide

摘要 在 iDempiere 7.1 之後的版本中,系統引入了一項新功能:在輸入和儲存匯率後,會自動檢查是否存在重疊的匯率。然而,有時候您需要建立長期匯率與即期匯率並存的情況,這可能會觸發不必要的重疊警告,如圖 1 所示。本教學深入探討了此情境的實用解決方案,提供逐步指導,教您如何有效地撰寫程式碼並實作繞過重疊檢查的機制。透過清晰的說明和實際範例,本指南將幫助您在 iDempiere 中順利調整匯率檢查流程,以滿足您特定的業務需求。 使用方式 在系統設定中,建立一個名為「Is_CurrencyRate_Overlap」的新設定,並將其值設為「N」。 使用「Y」將啟用重疊檢查。使用「N」將停用重疊檢查。如圖 2 所示。 圖 2 程式碼 操作步驟: 首先建立一個名為 CustomMConversionRate 的新類別,繼承自 org.compiere.model.MConversionRate。 覆寫兩個方法:beforeSave 和 afterSave,如下方程式碼片段所示。...

2023-08-19 · 12 分鐘
iDempiere

Implement the void function for Depreciation documents in iDempiere ERP.

此程式碼為會計人員實作了一個撤銷機制,用於反轉他們的操作。這在發生錯誤並需要更正的情況下非常有用。程式碼還根據文件的當前狀態定義了可以對文件執行的有效操作。 這是一段 Java 程式碼,用於在 ERP 系統中自訂折舊分錄的實作,繼承自基礎類別 MDepreciationEntry 並實作 DocOptions 介面。 該類別覆寫了 voidIt() 方法,用於刪除文件的會計分錄,並更新 MDepreciationExp 表以移除 ParentID 並將「processed」標誌設為「N」。該方法還會在刪除會計分錄之前檢查期間是否為開放狀態。 customizeValidActions() 方法也被實作,以根據文件狀態自訂可用的有效操作。例如,如果文件狀態為「已完成」,則唯一可用的有效操作是作廢該文件。 package tw.ninniku.model; import java.sql.ResultSet; import java.util.Properties;...

2023-04-24 · 8 分鐘
iDempiere

How to Handle Bad Debts in iDempiere ERP: A Step-by-Step Guide for Writing Off Receivables and Maintaining Accurate Financial Records

When customers are unable to pay their outstanding debts, it can create challenges for businesses trying to maintain accurate financial records. One way to handle bad debts is to use the payment allocation window in iDempiere ERP. Simply create a new charge for the bad debt expense, write it off using the payment allocation window, and attach the bad debt document. Finally, check the accounting entry for the allocation.

2023-04-05 · 6 分鐘