if (getInvoices()!=null)
getInvoices().reloadCurrentBlockOfData();
// check if there is only one instalment and this instalment has 0 instalment days
DetailPurchaseDocVO vo = (DetailPurchaseDocVO)headerFormPanel.getVOModel().getValueObject();
res = ClientUtils.getData("validatePaymentCode",new LookupValidationParams(vo.getPaymentCodeReg10DOC06(),new HashMap()));
if (res.isError()) {
OptionPane.showMessageDialog(
ClientUtils.getParentFrame(this),
res.getErrorMessage(),
ClientSettings.getInstance().getResources().getResource("debiting note closing"),