[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.
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.
aggiornato la PR
@are-agilebg puoi riprovare a fare quel test?
dc3d939 to
35ac919
Compare
TonyMasciI
left a comment
There was a problem hiding this comment.
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 |
| // 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; | ||
| // } |
| // 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); |
| # TODO is this necessary? | ||
| # "fiscal_epos_print/static/src/js/popups.js", | ||
| # "fiscal_epos_print/static/src/js/pos_order_mgmt.js", |
| # TODO To be converted with new components system | ||
| # "fiscal_epos_print/static/src/xml/pos.xml", | ||
| # "fiscal_epos_print/static/src/xml/lottery.xml", |
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 <55489873+francesco-ooops@users.noreply.github.com>
… 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