Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
bealdav committed Sep 2, 2024
1 parent 765fb53 commit cf00f01
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,7 @@ def _configure_eurof_factoring(self):
return company

def _populate_eurof_settings(self):
return (
"client = 45678\nemetteurD = 54321\nemetteurE = 12345\n"
)
return "client = 45678\nemetteurD = 54321\nemetteurE = 12345\n"

def _get_factor_shortname(self):
"""Allow to customze account name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def _prepare_factor_file_eurof(self):
"avec des valeurs correctes"
)
name = "FAA{}_{}_{}_{}.txt".format(
settings["client"],
settings["emetteurD"],
self._sanitize_filepath(f"{fields.Date.today()}"),
self.id,
self._sanitize_filepath(self.company_id.name),
Expand Down Expand Up @@ -142,9 +142,11 @@ def size(size, data, info=None):
"date": eurof_date(move.invoice_date if p_type == "F" else move.date),
"date_due": eurof_date(move.invoice_date_due) or pad(" ", 8),
"paym": "A" if p_type == "F" else "T", # TODO check si traite
"sale": pad(move.invoice_origin if p_type == "A" else " ", 10),
"sale": pad(move.invoice_origin, 10, position="left"),
"ref_f": pad(" ", 25), # autre ref facture
"ref_a": pad(move.invoice_origin or " ", 14), # ref facture de l'avoir
"ref_a": pad(
move.invoice_origin if p_type == "A" else " ", 14
), # ref facture de l'avoir
"blanc2": pad(" ", 51), # ref facture de l'avoir
"blanc3": pad(" ", 3), # ref facture de l'avoir
}
Expand Down

0 comments on commit cf00f01

Please sign in to comment.