Parting the XML file and putting Python right into it
The price of the discount
margin = margin - opt
Minimum permissible margin (MDM)
If the margin < MDM + price of rosn * 0.85:
price of rosn new = MDM + price of rosn * 0.85 + price of wholesale
Thus, the value of the margin per unit should be increased until the final price consists of the amount of the wholesale price, the minimum acceptable and 15% of the retail price.That is 15% of the retail price minus the retail price should not be less than the opt + MDM.In my words, I will try to explain the condition in detail.All parameters of the pricing formula should be able to control (through the variables), comments to each process.As a result, the processed price must be added to the already existing or already existing to this.It is advisable to use libraries as there is a script already written and this part will be used for one of the points of its work.import xml.etree.ElementTree as et
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
Beginning of the Price
root = tree.getroot()
Working with the Parsingo Page
for element in root:
for subelem in elem:
for offer in subelem.findall('offer'):
Examples of Pride
Reference
Picture
Picture
264 / wholesale price
364.0 / Retail
12123208
25248
23
4 percent
The LED RING
The Ring
Description The size of the LED RING BAY15D 19 LED Red LED3809R (8091) b2 Column: BAY15d (0SP).Number of diodes: 19.The food is 12b.Power consumption: 2WLight flow: 160 lmThe color of the candle: red.Size mm: 40x25x25.Package: 2 pieces in a blister.The new
Client's review of cooperation with Alex Dyriv
Parting the XML file and putting Python right into itA good man, he does everything quickly and efficiently. I did everything accurately and quality. Always in contact. I recommend it.
Freelancer's review of cooperation with Aleksandr Kobzar
Parting the XML file and putting Python right into itGreat customer, pleasant to work!
-
132 2 0 Ready to take! I will work in a couple of hours, there are no questions. I can get all into the function the variables which will control the formula parameters, access to the script is not required.
-
670 32 1 2 Good day, great experience in working with XML, with the task familiar, I will do in 1 day, I will be happy to collaborate
Current freelance projects in the category Python
IT Automation of VAT Reporting
223 USD
It is necessary to develop a system for automating the transfer of sales data from the CRM to the accounting system Wafeq. The system should import bank and payment reports, automatically reconcile payments with invoices, generate invoices for VAT reporting, and minimize manual… AI & Machine Learning, Python ∙ 4 hours 25 minutes back ∙ 25 proposals |
Software maintenance
111 USD
It is necessary to make adjustments to the software and maintain it in the future; the software places orders based on specified parameters and sends them to a Telegram bot. Python, Bot Development ∙ 5 hours 14 minutes back ∙ 47 proposals |
Account reconciliation tool with the bank, cards, and accountantTechnical Assignment: Tool for Reconciling Accounts with Bank, Cards, and AccountantGeneral Goal A local tool (script/small application in Python) is needed, which is manually run once every 1-2 months on my computer and performs reconciliation between: Invoices I issued to… Python, Desktop Apps ∙ 16 hours 39 minutes back ∙ 31 proposals |
Automatic video posting on social media according to a scheduleTechnical Assignment (TA) Automatic video publication on social media according to a scheduleProject Description A script/bot (Python preferred, or any other solution of your choice — the main thing is stability and ease of maintenance) is needed, which automatically publishes… Python, Bot Development ∙ 1 day 4 hours back ∙ 54 proposals |
Bot for receiving/searching applications
28 USD
In short: Create a bot where users can create and find profiles, the bot should have referral links, etc. Everything is detailed below. Client-side bot: Before the /start button, text in the center of the chat: What can this bot do? Welcome to Sugar Secret Agency! -Premium… Python, Bot Development ∙ 1 day 6 hours back ∙ 59 proposals |