-
-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[16.0][MIG] fiscal_epos_print #3060
Conversation
@Borruso ma l'E-POS sulla V16 non lo sta facendo Odoo SA ? |
160239a
to
963c8f6
Compare
/ocabot migration fiscal_epos_print |
@Borruso riporto qui quanto deciso nella chiamata di stamattina. |
963c8f6
to
da8e7fe
Compare
ragazzi ci sono update in merito ? |
JSON.stringify(tag_list_names) + | ||
"\n" + | ||
JSON.stringify(add_info); | ||
// TODO is push_orders or push_single_order |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK push_single_order è più corretto in quanto esegue il flush soltanto di questo ordine particolare, mentre push_orders può anche essere eseguito passando un singolo ordine ma questo viene aggiunto al localStorage degli ordini locali che poi vengono sincronizzati in toto.
Dai test che abbiamo eseguito è piuttosto importante che venga ripristinata l'istruzione di push a questo punto altrimenti al termine di ogni emissione scontrino sul POS (dalla seconda in avanti, non alla prima) viene visualizzato il popup con conferma "Ordini non sincronizzati residui" che richiede intervento manuale dell'operatore (vedi il blocco finally all'interno di _finalizeValidation() in PaymentScreen.js di point_of_sale)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aggiornato la PR
@are-agilebg puoi riprovare a fare quel test?
dc3d939
to
35ac919
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due note:
- i commenti che ho lasciato "Eliminare" li ho messi perché dato che esiste la PR mi aspetto che quelle parti non sono servite, e per il caso dei paths dei file nel manifest mi apsetto che vengano eliminati
- Magari serve sicuramente un'altra persona che controlli la parte JS che diciamo non mi fideri più di tanto di me ;)
# def _prepare_done_order_for_pos(self): | ||
# res = super(PosOrder, self)._prepare_done_order_for_pos() | ||
# res["lottery_code"] = self.lottery_code | ||
# res["refund_date"] = self.refund_date | ||
# res["refund_report"] = self.refund_report | ||
# res["refund_doc_num"] = self.refund_doc_num | ||
# res["refund_cash_fiscal_serial"] = self.refund_cash_fiscal_serial | ||
# res["fiscal_receipt_number"] = self.fiscal_receipt_number | ||
# res["fiscal_receipt_amount"] = self.fiscal_receipt_amount | ||
# res["fiscal_receipt_date"] = self.fiscal_receipt_date | ||
# res["fiscal_z_rep_number"] = self.fiscal_z_rep_number | ||
# res["fiscal_printer_serial"] = self.fiscal_printer_serial | ||
# res["fiscal_printer_debug_info"] = self.fiscal_printer_debug_info | ||
# return res |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Se non serve eliminare
// TODO CONTROLLARE SE SERVE | ||
// compute_all(taxes, price_unit, quantity, currency_rounding, handle_price_include=true) { | ||
// var res = super.compute_all(...arguments); | ||
// var self = this; | ||
// | ||
// var total_excluded = round_pr(price_unit * quantity, currency_rounding); | ||
// var total_included = total_excluded; | ||
// var base = total_excluded; | ||
// var list_taxes = res.taxes; | ||
// Amount_type 'group' not handled (used only for purchases, in Italy) | ||
// _(taxes).each(function(tax) { | ||
// _(taxes).each(function (tax, index) { | ||
// if (!no_map_tax) { | ||
// tax = self._map_tax_fiscal_position(tax); | ||
// } | ||
// if (!tax) { | ||
// return; | ||
// } | ||
// var tax_amount = self._compute_all(tax[0], base, quantity); | ||
// tax_amount = round_pr(tax_amount, currency_rounding); | ||
// if (!tax_amount) { | ||
// // Intervene here: also add taxes with 0 amount | ||
// if (tax[0].price_include) { | ||
// total_excluded -= tax_amount; | ||
// base -= tax_amount; | ||
// } else { | ||
// total_included += tax_amount; | ||
// } | ||
// if (tax[0].include_base_amount) { | ||
// base += tax_amount; | ||
// } | ||
// var data = { | ||
// id: tax[0].id, | ||
// amount: tax_amount, | ||
// name: tax[0].name, | ||
// }; | ||
// list_taxes.push(data); | ||
// } | ||
// }); | ||
// res.taxes = list_taxes; | ||
// | ||
// return res; | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminare
// Class FiscalEposPrintPosModel extends PosModel { | ||
// constructor(obj, options) { | ||
// super(...arguments); | ||
// var tax_model = _.find(this.models, function (model) { | ||
// return model.model === "account.tax"; | ||
// }); | ||
// tax_model.fields.push("fpdeptax"); | ||
// } | ||
// } | ||
// Registries.Model.add(FiscalEposPrintPosModel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminare
fiscal_epos_print/__manifest__.py
Outdated
# TODO is this necessary? | ||
# "fiscal_epos_print/static/src/js/popups.js", | ||
# "fiscal_epos_print/static/src/js/pos_order_mgmt.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Elimiare
fiscal_epos_print/__manifest__.py
Outdated
# TODO To be converted with new components system | ||
# "fiscal_epos_print/static/src/xml/pos.xml", | ||
# "fiscal_epos_print/static/src/xml/lottery.xml", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eliminare
35ac919
to
134da6d
Compare
fatto |
134da6d
to
73ad49f
Compare
ci sono novita'? |
Se volete date un'occhiata qui: https://github.com/BitStab/l10n-italy/tree/16.0-mig-fiscal_epos_print/fiscal_epos_print PR verso repository di Borruso è già aperto. |
Co-authored-by: francesco-ooops <[email protected]>
… defaulting to "1"! Tested - is working great on FP82III RT
…eso Merce). Added Fiscal Operator to User and Employee
…illing the splitted lines twice in the end.
…_price is send to epson ref OCA#3721
553e4f1
to
0f52ec2
Compare
This PR has the |
/ocabot merge nobump |
On my way to merge this fine PR! |
It looks like something changed on |
It looks like something changed on |
It looks like something changed on |
Congratulations, your PR was merged at bfae041. Thanks a lot for contributing to OCA. ❤️ |
Migrazione v16
--
Confermo di aver firmato il CLA https://odoo-community.org/page/cla e di aver letto le linee guida su https://odoo-community.org/page/contributing