[ADD] Patches off-by-one error in e-invoice
This commit is contained in:
parent
4fdea3e4be
commit
c15be784dd
@ -61,11 +61,13 @@ pt_special ()
|
|||||||
|
|
||||||
pushd $DEST
|
pushd $DEST
|
||||||
git apply $OPTIONS patches/20210908_l10n-co-account-e-invoicing_installs-in-production.patch
|
git apply $OPTIONS patches/20210908_l10n-co-account-e-invoicing_installs-in-production.patch
|
||||||
|
git apply $OPTIONS patches/20211119_l10n-co-account-e-invoicing_off-by-one-error.patch
|
||||||
popd
|
popd
|
||||||
|
|
||||||
DEST=$DESTDIR/v14-facturacionelectronica/l10n_co_partner_person_type/
|
# Fixed in origin:
|
||||||
OPTIONS="--directory=$DEST --strip=1"
|
# DEST=$DESTDIR/v14-facturacionelectronica/l10n_co_partner_person_type/
|
||||||
patch $OPTIONS < patches/20210915_l10n-co-partner-person-type_fixes-depends.patch
|
# OPTIONS="--directory=$DEST --strip=1"
|
||||||
|
# patch $OPTIONS < patches/20210915_l10n-co-partner-person-type_fixes-depends.patch
|
||||||
}
|
}
|
||||||
|
|
||||||
pt_community ()
|
pt_community ()
|
||||||
|
|||||||
@ -0,0 +1,14 @@
|
|||||||
|
diff --git a/l10n_co_account_e_invoicing/models/res_company.py b/l10n_co_account_e_invoicing/models/res_company.py
|
||||||
|
index eadfde2..690b1e8 100644
|
||||||
|
--- a/l10n_co_account_e_invoicing/models/res_company.py
|
||||||
|
+++ b/l10n_co_account_e_invoicing/models/res_company.py
|
||||||
|
@@ -186,7 +186,7 @@ class ResCompany(models.Model):
|
||||||
|
date_from = dian_document.invoice_id.invoice_date
|
||||||
|
days = (today - date_from).days
|
||||||
|
|
||||||
|
- if int(dian_document.invoice_id.send_invoice_to_dian) <= days:
|
||||||
|
+ if (int(dian_document.invoice_id.send_invoice_to_dian) - 1) <= days:
|
||||||
|
try:
|
||||||
|
dian_document.action_process()
|
||||||
|
except:
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user