rattail.isv.cam32.pricing

rattail.isv.cam32.pricing

class rattail.isv.cam32.pricing.NormalPriceChange(item=None, price1=None, price2=None, price3=None, price4=None, price5=None, price6=None)

Represents a “normal” price change entry, (to be) included in a normal price change file.

class rattail.isv.cam32.pricing.NormalPriceChangeFile(proposed_date=None, path=None)

Represents a “normal” price change file. It contains a dictionary attribute (changes) which tracks the rattail.isv.cam32.pricing.NormalPriceChange instances (to be) included in the file, keyed by item number.

remove()

Removes the actual price change file associated with this object from disk.

write(path=None, progress_factory=None)

Writes the price changes to file. If path is not provided, it uses the path it obtained in the constructor.

A progress factory may be provided.

If the progress object is cancelled, this function will return False. Otherwise, it will return True.

class rattail.isv.cam32.pricing.PromotionalPriceChange(item=None, sale_price=None)

Represents a “promotional” price change entry, to be included in a promotional price change file.

rattail.isv.cam32.pricing.write_promotional_price_change_file(changes, start_date, end_date, path=None, progress_factory=None)

Creates a promotional price change file to be imported by CAM32. Must pass a dictionary of rattail.isv.cam32.pricing.PromotionalPriceChange instances (keyed by item number), and the start and end dates for the promotion.

If you do not provide a path for the file, one will be determined automatically.

A progress factory may be provided.

Previous topic

rattail.isv.cam32.pdt

Next topic

rattail.isv.cam32.purchasing

This Page