Beispiel #1
0
 def order(self):
     if not self.shouldSkip():
         order = Order(id=self.order_number())
         order.date = self.order_date()
         order.tax = self.tax()
         order.discount = self.discount()
         order.shipping = self.shipping()
         order.total = self.grand_total()
         order._bill = self.bill()
         return order
Beispiel #2
0
 def order(self):
     if not self.shouldSkip():
         order = Order(id=self.order_number())
         order.date = self.order_date()
         order.tax = Decimal(self.tax()) if not empty(self.tax()) else Decimal(0.00)
         order.discount = Decimal(self.discount()) if not empty(self.discount()) else Decimal(0.00)
         order.shipping = Decimal(self.shipping()) if not empty(self.shipping()) else Decimal(0.00)
         order.total = Decimal(self.grand_total()) if not empty(self.grand_total()) else Decimal(0.00)
         order._bill = self.bill()
         return order
Beispiel #3
0
 def order(self):
     if not self.shouldSkip():
         order = Order(id=self.order_number())
         order.date = self.order_date()
         order.tax = self.tax()
         order.discount = self.discount()
         order.shipping = self.shipping()
         order.total = self.grand_total()
         order._bill = self.bill()
         return order