Skip to content

Commit

Permalink
Se corrige error en tiempo de ejecución para setup de IVA en el Terminal
Browse files Browse the repository at this point in the history
PDV
  • Loading branch information
yamelsenih committed Sep 6, 2022
1 parent 0ed36bf commit 1487b3b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ private void createPaymentMethod(int withholdingTypeId) {
.first();
if(payPaymentMethod == null
|| payPaymentMethod.get_ID() <= 0) {
payPaymentMethod.setAD_Org_ID(0);
payPaymentMethod = MTable.get(context, "C_PaymentMethod").getPO(0, getTrx_Name());
payPaymentMethod.setAD_Org_ID(0);
payPaymentMethod.set_ValueOfColumn("TenderType", MPayment.TENDERTYPE_CreditMemo);
payPaymentMethod.set_ValueOfColumn("Value", "Pago-IVA");
payPaymentMethod.set_ValueOfColumn("Name", "Pago de I.V.A.");
Expand All @@ -168,6 +168,7 @@ private void createPaymentMethod(int withholdingTypeId) {
.first();
if(allocatedPaymentMethod == null
|| allocatedPaymentMethod.get_ID() <= 0) {
allocatedPaymentMethod = MTable.get(getCtx(), "C_POSPaymentTypeAllocation").getPO(0, getTrx_Name());
allocatedPaymentMethod.setAD_Org_ID(pos.getAD_Org_ID());
allocatedPaymentMethod.set_ValueOfColumn("C_POS_ID", posId);
allocatedPaymentMethod.set_ValueOfColumn("C_PaymentMethod_ID", paymentMethodId);
Expand Down

0 comments on commit 1487b3b

Please sign in to comment.