Skip to content

Commit

Permalink
Se elimina referencia cuando no aplica para retencion de IVA en una
Browse files Browse the repository at this point in the history
orden de venta
  • Loading branch information
yamelsenih committed Sep 10, 2022
1 parent c039bdb commit 3db2af2
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,13 +173,13 @@ && getDocument().get_Table_ID() != I_C_Order.Table_ID) {
}
// Validate Exempt Document
if(order.get_ValueAsBoolean(LVEUtil.COLUMNNAME_IsWithholdingTaxExempt)) {
isValid = false;
addLog("@DocumentWithholdingTaxExempt@");
deleteReference();
return false;
}
// Validate Exempt Business Partner
if(businessPartner.get_ValueAsBoolean(LVEUtil.COLUMNNAME_IsWithholdingTaxExempt)) {
isValid = false;
addLog("@BPartnerWithholdingTaxExempt@");
deleteReference();
return false;
}
// Validate Withholding Definition
//MLVEWithholdingTax withholdingTaxDefinition = MLVEWithholdingTax.getFromClient(getContext(), order.getAD_Org_ID());
Expand All @@ -190,16 +190,16 @@ && getDocument().get_Table_ID() != I_C_Order.Table_ID) {
}
// Validate Definition
if(withholdingRateId == 0) {
addLog("@" + LVEUtil.COLUMNNAME_WithholdingTaxRate_ID + "@ @NotFound@");
isValid = false;
deleteReference();
return false;
} else {
withholdingRate = MLVEList.get(getContext(), withholdingRateId).getListVersionAmount(order.getDateOrdered());
setWithholdingRate(withholdingRate);
}
// Validate Tax
if(getWithholdingRate().equals(Env.ZERO)) {
addLog("@LVE_WithholdingTax_ID@ (@Rate@ @NotFound@)");
isValid = false;
deleteReference();
return false;
}
// Validate Tribute Unit

Expand Down

0 comments on commit 3db2af2

Please sign in to comment.