From 7c09038c6d56c1339da02cf845469c2eb9a92100 Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Wed, 18 Apr 2007 23:02:59 +0000 Subject: [PATCH] fixed: [ 1693801 ] Error when you try comple a shipmet or receipt and tax is 0 https://sourceforge.net/tracker/index.php?func=detail&aid=1693801&group_id=176962&atid=879332 --- base/src/org/compiere/model/MOrderLine.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/MOrderLine.java b/base/src/org/compiere/model/MOrderLine.java index 9d8e0ae2d5..682fdeef02 100644 --- a/base/src/org/compiere/model/MOrderLine.java +++ b/base/src/org/compiere/model/MOrderLine.java @@ -866,7 +866,7 @@ public class MOrderLine extends X_C_OrderLine if (!newRecord && is_ValueChanged("C_Tax_ID")) { // Recalculate Tax for old Tax - if (!m_parent.isProcessed()) + if (!getParent().isProcessed()) if (!updateOrderTax(true)) return false; } @@ -922,7 +922,7 @@ public class MOrderLine extends X_C_OrderLine private boolean updateHeaderTax() { // Recalculate Tax for this Tax - if (!m_parent.isProcessed()) + if (!getParent().isProcessed()) if (!updateOrderTax(false)) return false;