KSOLVES: Old Backlog
====================
###### tags: `Odoo`,
# SPRINT_8
###### 27th April
----
# Demands to @jorgesallum
- [x] Meta Brasil about uello-loggi case
- [x] Transpo Prefix in the Transpo API
- [x] Transpo API Docs
- [x] Description about 3PL
- [x] Access rights
- [x] Please provide access for Odoo13-motor repo to sujata
- [ ] ~~jorgesallum Create a form asking what users can’t access without the settings access~~
# Sprint Backlog 8 (W13-W16)
### Small (Fast Lane)
- [x] `Bug` Customer Anna Heloisa Segatta. Unable to merge. > [name=Sujata: Need more time] :new:
- [x] Inform "shippingCarrierCode" to Meta Brasil API ==Waiting== :new:
- [x] Correct the following fields when it's dropshiping with Meta Calculator `"metodo_envio": "false","pedidoType": "DROP_SHIP"` ==Waiting== :new:
- [x] Correios Label [name=Sutata will check soon, Jorge: To Monday] `n-1` :new:
- [x] Disable Correios from all the website except from n-1
- [x] :+1: Update AA/AT on Journal Items seems not work yet.
- [x] :+1: Add please Vendor PO Status to Group by in DS Grid
- [x] [Docs: Amazon API](/JepYG_UZQZSQn1YX-Hvz1Q)
- [x] [Docs: Dropshiping](/esLz0yGLQHSu5sBl3mZ22A)
- [x] Add Dropship Web activation for Sales team direct to the route (2h) @jorgesallum on the testing branch
- [ ] ~~`support` Create a email template in the DS and add PO number in the email title.~~
- [x] I need to translate the date fields in the DS.
- [x] :+1:`support` Studio not working for Product and Purchase
```
Scheduled Date = Expedição Prevista
Expected Date = Entrega Prevista
Vendor Shipped Date = Expedição
Vendor Delivered Date = Entrega
```

### Meta Brasil
- [x] [Docs: Meta Brasil API](/pNVqcL2USCuD1M2WPlqsTQ)
- [x] :new: Delivery method in the website
- [ ] ~~:new: Extend Zip Code-Calculator for Meta Brasil~~
#### Delivery Method and Shipping Supplier (BR Loc.)
- [x] Merge Delivery Method and Shipping Supplier
#### Tracking code (API "pedidos-controler")
- [x] Stesting mode http://wshml.umlivro.com.br:7080/pod-api/swagger-ui.html
- [x] :+1: `GET` `API :: pedidos-controller` Tracking code to send to the customer. "CodigoEncomenda" = our PO number; ChaveCliente = our number at Meta.
- [x] :+1: `GET` `API :: fretes-controller` The number of boxes and add in the DS/MOV to invoicing it. The field is called `totalVolumes`.
- [x] :+1: `GET` delivery price charged by Meta and add it to the PO with no [margin](https://nimb.ws/WsgF6R). (Sprint 6)
- [x] :+1: `POST` the shipping partner and service code to Meta
- [x] :+1: Add in the logs if exists a cheaper partner for the delivery
- [x] :+1: Check if delivery address is include in the API
- [x] :+1: Add a tag field where you can add a list of parterns Meta Brasil is working with. Example: [(UELLO),(MANDAE)]. In this case we are going to operate only with these partners. The system will ignore (LOGGI).
- [ ] ~~Add AA in a Bill created by NFe XML action “Create PO” (more description)~~
- [ ] ~~Correct Wrong Sales Team `more description`~~
### EdLab Stock Stabilization W14
- [x] Company = EdLab Stock for books under product category EdLab (booktype = "pbook")
- [x] Company = Hedra Matriz VM for books under product category EdLab
### Review Access Right for billing
- [ ] Give Michelle Zein (n-1 user) access to SVG model
- [ ] Add this in the `Accounting` > `Billing` profile
- [ ] Metabooks
### Seller File
:::info
Considering we have books in this repo: https://github.com/motoreditorial/motorone
Maybe we have a crontab installed in the ftp.motoreditorial.org (Credentials: Motor; "teste13")
Now we have to access the server ftp.motoreditorial.org that is Digital Ocean.
:::
- [x] Hack the current feature
- [ ] [Docs](https://hackmd.io/fj8s10VtQXemZdn0R4k4uQ?edit)
----
# SPRINT_6
###### tags: Jan21
> [name=Jorge Sallum, Sujata, Nehan, Suzana, Felipe]
Urgencies (deliver immediatelly)
---------
- [x] `bug` Metabooks not updating properly
- [x] `bug` Schedule Action "MetaBrasil GET PO Status" is not working
- [x] `bug` Action to update AA is not working (it's not updating the AA)
- [x] `bug` AA/AT in the category is not working
- [x] `bug` Delivery address in the Danfe (n-1)
- [x] Avoid "Temporarilly unavailable" in the website for books on dropship `staging`
- [x] "Temporarilly unavailable" :: Same for product category
Small issues
------------
- [x] Add "Vendor PO Status" in the DS `staging`
- [x] Add AT in a Bill created by NFe XML action "Create PO" `stating`
Exdend the SOC modules and
--------------------------
- [x] create one field in Settings called "SOC-PO Limit" to define a value. Ex: 1000.
- [x] This value will be a limit to POs created in dropship in order to fulfill SOCs only.
- [x] If this limit is reached, the system starts creating job exceptions in the POs with the message: "SOC Order Limit".
###### Example
:::info
SOC < PO 1 = Total Amount = 500 $SOC-PO_Limit = 500
SOC < PO 2 = Total Amount = 500 $SOC-PO_Limit = 1000
SO < PO 3 = Total Amount = 500
SOC < PO 4 = Total Amount = 001 $SOC-PO_Limit = 1001 --> Create Exception
:::
Correios
--------
[SIGEPy](https://github.com/nichmorgan/SIGEPy)
[Olist](https://github.com/olist/correios)
:dart: Extend the codes in olist library do accept codes. You can use the dates below retrieved from https://github.com/olist/correios/blob/master/correios/models/data.py
I forked the submodule. It's [here](https://github.com/hedra-digital/correios/)
- [x] Sedex 03050
```json
"41211": {
"id": 113546,
"description": "PAC - CONTRATO",
"category": "PAC",
"display_name": "PAC",
"max_weight": 30000,
"symbol": "standard",
"default_extra_services": [EXTRA_SERVICE_RR],
"min_declared_value": Decimal("20.50"),
"max_declared_value": Decimal("3000.00"),
},
```
- [x] Pac 03085
```json
"41068": {
"id": 109819,
"description": "PAC CONTRATO AGENCIA",
"category": "PAC",
"display_name": "PAC",
"max_weight": 30000,
"symbol": "standard",
"default_extra_services": [EXTRA_SERVICE_RR],
"min_declared_value": Decimal("20.50"),
"max_declared_value": Decimal("3000.00"),
},
```
API Meta 1.3
------------
Considering the New API http://ws.umlivro.com.br:7080/pod-api/swagger-ui.html
```json=
{
"chaveCliente": "1f36e1bb-2090-41df-9fc0-1855ed40b506",
"listaItems": [
{
"preco": 27.90,
"quantidade": 1,
"referenciaISBN":"9788561096120"
}
]
}
```
:dart: Integrate the Meta Brasil Calculator as a delivery method and get traking code for the customer.
#### Calculator (API "fretes-controler")

```json=
{
"postalCode": "01046010",
"shippingCarrier": [
{
"code": 1,
"name": "Correios",
"shippingServices": []
},
{
"code": 16,
"name": "Uello",
"shippingServices": [
{
"code": 1,
"name": "Uello",
"days": "1",
"price": "7.9"
},
{
"code": 2,
"name": "Uello",
"days": "1",
"price": "7.9"
}
]
},
{
"code": 17,
"name": "Mandae",
"shippingServices": [
{
"code": 2,
"name": "Rápido",
"days": "2",
"price": "8.18"
},
{
"code": 1,
"name": "Econômico",
"days": "4",
"price": "7.48"
}
]
},
{
"code": 18,
"name": "Loggi",
"shippingServices": [
{
"code": 2,
"name": "EXPRESS",
"days": "1",
"price": "6.26"
},
{
"code": 1,
"name": "EXPRESS",
"days": "1",
"price": "6.26"
}
]
},
{
"code": 19,
"name": "Mobi",
"shippingServices": [
{
"code": 1,
"name": "MOBI",
"days": "4",
"price": "6.21"
},
{
"code": 2,
"name": "MOBI",
"days": "4",
"price": "6.21"
}
]
}
]
}
```
- [x] Create a Delivery Method type called Meta Brasil
- [x] Add a radio button with two options: cheapest or faster
- [x] Add a tag field where you can add a list of parterns Meta Brasil is working with. Example: [(UELLO),(MANDAE)]. In this case we are going to operate only with these partners. The system will ignore (LOGGI).
Amazon 1.0.1
------------
:dart: Some adjustments:
- [ ] Make Vendor Status, Amazon API status and DS status follow the same path. Confirm ASN only if the purchase is ready.
| Meta | Odoo | Amazon |
|-----------|---------------------|--------|
| | | POA |
| Accepted | DS.Status = Waiting | POA |
| In Prod. | DS.Status = Ready | .... |
| Shipped | Done | ASN |
| Delivered | PO.Status = Locked | |
- [x] The POS must inform only what we are able to deliver. So it's the products included in the inventory movements (DS or MOV) that must be confirmed to Amazon and not what is in the SO.
:dart: Follow the date proposed to Amazon as a limit to invoicing:
CONSIDERING we can issue an invoice in an period of time:
- [x] Create a new SO.date to store Amazon.EndDate;
- [x] Create a Job Exception in the SO to alert about the Amazon.EndDate before `x` days considering the security_lead defined in the settings.